分時分量查詢
get_time_slice_order
輸入參數
| 參數 | 類別 | 說明 |
|---|---|---|
| account | Account | 帳號 |
| batch_no | string | 分時分量條件單號 |
| marketType | FutOptConditionMarketType (Optional) default : 日盤 | 盤別 |
Result 回傳
| 參數 | 類別 | 說明 |
|---|---|---|
| isSuccess | bool | 是否成功 |
| data | List | 條件單回傳資訊 |
| message | string ? (optional) | 當isSuccess = false 回傳錯誤訊息 |
委託資訊 ConditionDetail 欄位
Return type : Object
| 參數 | 類別 | 說明 |
|---|---|---|
| guid | string | 條件單號 |
| batch_no | string | 分單批號 |
| order_level | string | 條件單層級 |
| last_time | string | 更新時間 |
| parent_guid | string | 父單單號 |
| symbol | string | 商品代號 |
| order_amount | string | 委託金額 |
| child_batch_no | string | 子單分單批號 |
| account | string | 帳號 |
| condition_content | string | 條件內容 |
| action | string | 處理方式 |
| condition_buy_sell | string | 買賣別 |
| condition_symbol | string | 商品名稱 |
| condition_price | string | 價格 |
| condition_volume | string | 委託數量 |
| condition_filled_volume | string | 成交數量 |
| creat_time | string | 建立時間 |
| start_date | string | 預約開始時間 |
| status | string | 目前狀態 |
| error_message | string | 目前狀態異常說明 |
| detail_records_count | string | 明細筆數 |
| detail_records | List | 明細資料 |
| >> guid | string | 條件單號 |
| >> account | string | 帳號 |
| >> condition_content | string | 條件內容 |
| >> action | string | 處理方式 |
| >> condition_buy_sell | string | 買賣別 |
| >> condition_symbol | string | 商品名稱 |
| >> condition_price | string | 價格 |
| >> condition_volume | string | 委託數量 |
| >> condition_filled_volume | string | 成交數量 |
| >> start_date | string | 預約時間 |
| >> status | string | 目前狀態 |
| >> error_message | string | 目前狀態異常說明 |
| tpslCount | string | 停損停利筆數 |
| tpslRecord | List | 停損停利明細資料 |
| >> guid | string | 條件單號 |
| >> account | string | 帳號 |
| >> condition_content | string | 條件內容 |
| >> action | string | 處理方式 |
| >> condition_buy_sell | string | 買賣別 |
| >> condition_symbol | string | 商品名稱 |
| >> condition_price | string | 價格 |
| >> condition_volume | string | 委託數量 |
| >> condition_filled_volume | string | 成交數量 |
| >> start_date | string | 預約時間 |
| >> status | string | 目前狀態 |
| >> error_message | string | 目前狀態異常說明 |
請求範例
sdk.futopt.get_time_slice_order(account,"123456")
回傳範例
Result {
is_success: True,
message: None,
data :[
ConditionDetail {
guid: "f76c49ee-e955-41ac-8e11-02d6d2b78918",
batch_no: "",
order_level: "0",
last_time: "2024-08-16 17:13:29",
condition_type: "定時",
parent_guid: "",
symbol: "TXO20000H4",
order_amount: "0",
child_batch_no: "",
account: "9974825",
condition_content: "當於2024/08/16 定時單時間大於等於09:15:00 全部成交為止",
action: "下單(新倉)",
condition_buy_sell: "買",
condition_symbol: "買 台指2024年8 月買權履約價:20000",
condition_price: "500(ROD)",
condition_volume: "1口",
condition_filled_volume: "0口",
create_time: "2024-08-16 17:13:28",
start_date: "2024/08/16",
status: "預約(N)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "0",
TPSLRecord: [],
}
]
}