Time-sharing component condition list
TimeSliceOrder
Input parameters
| Parameters | Category | Description |
|---|---|---|
| account | Account | account |
| start_date | string | Conditional start monitoring time |
| end_date | string | Condition end monitoring time |
| stop_sign | StopSign | Conditional stop conditions: Full until all transactions are completed, Partial until partial transactions are completed, UntilEnd until the validity period ends |
| splitDescription | SplitDescription | Split order conditions |
| ConditionOrder Object | ConditionOrder Object | Order details |
Result return
| Parameters | Category | Description |
|---|---|---|
| isSuccess | bool | Whether it was successful |
| data | Object | Conditional order return information |
| message | string ? (optional) | Return error message when isSuccess = false |
Order information ConditionOrderResult field
Return type : Object
| Parameters | Category | Description |
|---|---|---|
| batchId | string | time-sharing component condition order number |
Request example
//Design 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);
Return example
{
isSuccess = True,
message = ,
data = ConditionOrderResult {
guid = 24080500000002,
}
}