Time Slice Condition
timeslice_order
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 |
split_description | SplitDescription | Split Condition |
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
split = SplitDescription(
method=TimeSliceOrderType.Type1,
interval=300,
single_quantity=1000,
total_quantity=10000,
start_time='083000'
)
order = ConditionOrder(
buy_sell = BSAction.Buy,
symbol = "2881",
price = "66",
quantity = 1000,
market_type = ConditionMarketType.Common,
price_type = ConditionPriceType.Limit,
time_in_force = TimeInForce.ROD,
order_type = ConditionOrderType.Stock
)
sdk.stock.time_slice_order(target_account, "20240427","20240516", StopSign.Full, split, order)
Response Example
Result {
is_success: True,
message: None,
data : ConditionOrderResult {
guid : "24080500000002"
}
}