分時分量條件單
time_slice_order
輸入參數
參數 | 類別 | 說明 |
---|---|---|
account | Account | 帳號 |
start_date | string | 條件開始監控時間 |
end_date | string | 條件結束監控時間 |
stop_sign | StopSign | 條件停止條件 : Full 全部成交為止、Partial 部 分成交為止、UntilEnd 效期結束為止 |
split_description | SplitDescription | 觸發條件 |
OrderObject | OrderObject | 委託內容 |
Result 回傳
參數 | 類別 | 說明 |
---|---|---|
isSuccess | bool | 是否成功 |
data | Object | 條件單回傳資訊 |
message | string ? (optional) | 當isSuccess = false 回傳錯誤訊息 |
委託資訊 ConditionOrderResult 欄位
Return type : Object
參數 | 類別 | 說明 |
---|---|---|
guid | string | 條件單號 |
請求範例
# 設計條件內容
split = SplitDescription(
method=TimeSliceOrderType.Type1,
interval= 300,
single_quantity= 1,
total_quantity= 10,
start_time='083000'
)
order = FutOptConditionOrder(
buy_sell = BSAction.Buy,
symbol = "TXO20000E4",
price = "500",
lot = 1,
market_type = FutOptConditionMarketType.Option,
price_type = FutOptConditionPriceType.Limit,
time_in_force = TimeInForce.ROD,
order_type = FutOptConditionOrderType.New,
)
sdk.futopt.time_slice_order(target_account, "20240427","20240516", StopSign.Full, split, order)
回傳範例
Result {
is_success: True,
message: None,
data : ConditionOrderResult {
guid : "24081200000006"
}
}