Time Slice Order
TimesliceCondition
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| start_date | string | Condition Start Date |
| end_date | string | Condition End Date |
| stop_sign | StopSign | Stop Condition : Full Until Fully filled、Partial Once Filled happened 、 UntilEnd Until Expiry |
| splitDescription | SplitDescription | Condition Content |
| OrderObject | OrderObject | Order Object |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Interface result |
| data | Object | ConditionOrderResult is returned |
| message | string ? (optional) | isSuccess = false error description is returned |
ConditionOrderResult Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| guid | string | Condition Serial Number |
Request Example
// Condition Content
var split = new SplitDescription(
TimeSliceOrderType.Type1,
300,
1,
10,
'083000'
);
var order = new FutOptConditionOrder(
BsAction.Buy,
"TXO20000E4",
"100",
1,
FutOptConditionMarketType.Option,
FutOptConditionPriceType.Limit,
TimeInForce.Rod,
FutOptConditionOrderType.New
);
sdk.FutOpt.TimeSliceOrder(target_account, "20240427","20240516", StopSign.Full, split, order);
Response Example
{
isSuccess = True,
message = ,
data = ConditionOrderResult {
guid = 24081200000006
}
}