Time Slice COndition
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 | Split Condition |
| 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
const split = {
method: TimeSliceOrderType.Type1,
interval: 300,
single_quantity: 1,
total_quantity: 10,
start_time: '083000'
};
const order = {
buySell: BSAction.Buy,
symbol: "TXO20000E4",
price: "500",
lot: 1,
marketType: FutOptConditionMarketType.Option,
priceType: FutOptConditionPriceType.Limit,
timeInForce: TimeInForce.ROD,
orderType: FutOptConditionOrderType.New
};
sdk.futopt.timeSliceOrder(target_account, "20240427","20240516", StopSign.Full, split, order)
Response Example
{
isSuccess: true,
data : {
guid : "24081200000006"
}
}