Skip to main content

分時分量查詢

get_time_slice_order

輸入參數

參數類別說明
accountAccount帳號
batchNostring分時分量條件單號

Result 回傳

參數類別說明
is_successbool是否成功
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成交數量
create_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目前狀態異常說明
tpsl_countstring停損停利筆數
tpsl_recordList停損停利明細資料
>> guidstring條件單號
>> accountstring帳號
>> condition_contentstring條件內容
>> actionstring處理方式
>> condition_buy_sellstring買賣別
>> condition_symbolstring商品名稱
>> condition_pricestring價格
>> condition_volumestring委託數量
>> condition_filled_volumestring成交數量
>> start_datestring預約時間
>> statusstring目前狀態
>> error_messagestring目前狀態異常說明

請求範例

auto get_timeslice = sdk->stock->get_time_slice_order(target_account, "25060500000002");
if (!get_timeslice.is_success) {
std::cout << "get order result failed reason: "
<< (get_timeslice.message.has_value() ? get_timeslice.message.value() : "No message")
<< std::endl;
}
else {
if (get_timeslice.data.has_value()) {
for (const auto& result : get_timeslice.data.value()) {
std::cout << result << std::endl;
}
}
else {
std::cout << "Order result success but no data returned." << std::endl;
}
}

回傳範例

{
isSuccess = true,
message = ,
data = [
ConditionDetail{
Guid = c4dc90c1-4277-42ea-b585-085dc347eac0,
BatchNo = ,
OrderLevel = 0,
LastTime = 2024-07-23 17:30:01,
ConditionType = 分時分量,
ParentGuid = ,
Symbol = 2881,
OrderAmount = 0,
ChildBatchNo = ,
Account = 1307515,
ConditionContent = 當於2024/07/23 定時單時間大於等於08:40:00 全部成交為止,
Action = 下單,
ConditionBuySell = 現股買,
ConditionSymbol = 富邦金 現股買,
ConditionPrice = 66(ROD),
ConditionVolume = 1,
ConditionFilledVolume = 0,
CreateTime = 2024-07-22 17:30:03,
StartDate = 2024/07/23,
Status = 條件單中止(I),
ErrorMessage = ,
DetailRecordsCount = 0,
DetailRecords = [],
TpslCount = 0,
TpslRecord = []
},

ConditionDetail
{
Guid = 2975702e-f36f-4da4-bab6-1310344ec05d,
BatchNo = ,
OrderLevel = 0,
LastTime = 2024-07-23 17:30:01,
ConditionType = 分時分量,
ParentGuid = ,
Symbol = 2881,
OrderAmount = 0,
ChildBatchNo = ,
Account = 1307515,
ConditionContent = 當於2024/07/23 定時單時間大於等於09:10:00 全部成交為止,
Action = 下單,
ConditionBuySell = 現股買,
ConditionSymbol = 富邦金 現股買,
ConditionPrice = 66(ROD),
ConditionVolume = 1,
ConditionFilledVolume = 0,
CreateTime = 2024-07-22 17:30:03,
StartDate = 2024/07/23,
Status = 條件單中止(I),
ErrorMessage = ,
DetailRecordsCount = 0,
DetailRecords = [],
TpslCount = 0,
TpslRecord = []
}
]
}