Skip to main content

條件單查詢By Guid

get_condition_order_by_id

輸入參數

參數類別說明
accountAccount帳號
guidstring條件單號
marketTypeFutOptConditionMarketType (Optional) default : 日盤盤別

Result 回傳

參數類別說明
isSuccessbool是否成功
dataList條件單回傳資訊
messagestring ? (optional)當isSuccess = false 回傳錯誤訊息

委託資訊 ConditionDetail 欄位

Return type : Object

參數類別說明
guidstring條件單號
batch_nostring分單批號
order_levelstring條件單層級
last_timestring更新時間
parent_guidstring父單單號
symbolstring商品代號
order_amountstring委託金額
child_batch_nostring子單分單批號
accountstring帳號
condition_contentstring條件內容
actionstring處理方式
condition_buy_sellstring買賣別
condition_symbolstring商品名稱
condition_pricestring價格
condition_volumestring委託數量
condition_filled_volumestring成交數量
creat_timestring建立時間
start_datestring預約開始時間
statusstring目前狀態
error_messagestring目前狀態異常說明
detail_records_countstring明細筆數
detail_recordsList明細資料
>> guidstring條件單號
>> accountstring帳號
>> condition_contentstring條件內容
>> actionstring處理方式
>> condition_buy_sellstring買賣別
>> condition_symbolstring商品名稱
>> condition_pricestring價格
>> condition_volumestring委託數量
>> condition_filled_volumestring成交數量
>> start_datestring預約時間
>> statusstring目前狀態
>> error_messagestring目前狀態異常說明
tpslCountstring停損停利筆數
tpslRecordList停損停利明細資料
>> guidstring條件單號
>> accountstring帳號
>> condition_contentstring條件內容
>> actionstring處理方式
>> condition_buy_sellstring買賣別
>> condition_symbolstring商品名稱
>> condition_pricestring價格
>> condition_volumestring委託數量
>> condition_filled_volumestring成交數量
>> start_datestring預約時間
>> statusstring目前狀態
>> error_messagestring目前狀態異常說明

請求範例

sdk.futopt.get_condition_order_by_id(account,"8ff3472b-185a-488c-be5a-b478deda080c")

回傳範例


Result {
is_success: True,
message: None,
data :[
ConditionDetail {
guid: "adada47e-dea3-4a5a-9eff-d36bd7a71e87",
batch_no: "",
order_level: "0",
last_time: "2024-11-15 10:38:48",
condition_type: "觸價",
parent_guid: "adada47e-dea3-4a5a-9eff-d36bd7a71e87",
symbol: "FIMTX202411",
order_amount: "0",
child_batch_no: "",
account: "9974825",
condition_content: "當自2024/11/15至2024/11/20內台指期202412成交價大於21000點 全部成交為止",
action: "下單(新倉)",
condition_buy_sell: "賣",
condition_symbol: "賣 小型台指202411",
condition_price: "範圍市價(ROD)",
condition_volume: "2口",
condition_filled_volume: "0口",
create_time: "2024-11-15 10:38:48",
start_date: "2024/11/15",
status: "洗價中(Y)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "2",
TPSLRecord: [
ParentChildRecord {
guid: "b79084fe-6fdf-461f-a264-0482072237eb",
account: "9974825",
condition_content: "當自2024/11/15至2024/11/20內小型台指202411買進價大於等於22340元 全部成交為止",
action: "下單(平倉)",
condition_buy_sell: "買",
condition_symbol: "買 小型台指202411",
condition_price: "22340(ROD)",
condition_volume: "2口",
condition_filled_volume: "0口",
start_date: "2024/11/15",
status: "未生效(W)",
error_message: "",
},
ParentChildRecord {
guid: "b79084fe-6fdf-461f-a264-0482072237eb",
account: "9974825",
condition_content: "當自2024/11/15至2024/11/20內小型台指202411買進價小於等於22280元 全部成交為止",
action: "下單(平倉)",
condition_buy_sell: "買",
condition_symbol: "買 小型台指202411",
condition_price: "22280(ROD)",
condition_volume: "2口",
condition_filled_volume: "0口",
start_date: "2024/11/15",
status: "未生效(W)",
error_message: "",
},
],
}
]
}