Time Slice ConditionOrder
TimesliceCondition
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
startDate | string | Condition Start Date |
endDate | string | Condition End Date |
stopSign | StopSign | Stop Condition : Full Until Fully filled、Partial Once Filled happened 、 UntilEnd Until Expiry |
MultiCondition | Condition List | List of Condition Content |
ConditionOrder Object | ConditionOrder Object | ConditionOrder 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,
1000,
10000,
"083000",
null
);
var order = new ConditionOrder(
BsAction.Buy,
"2881",
"66",
2000,
ConditionMarketType.Common,
ConditionPriceType.Limit,
TimeInForce.Rod,
ConditionOrderType.Stock
);
sdk.Stock.TimeSliceOrder(target_account, "20240427","20240516", StopSign.Full, split, order);
Response Example
{
isSuccess = True,
message = ,
data = ConditionOrderResult {
guid = 24080500000002
}
}