Skip to main content

取得批次委託列表

batch_order_lists

輸入參數

參數類別說明
accountAccount帳號

Result 回傳

參數類別說明
is_successbool是否成功
dataList回傳批次單資訊
messagestring當isSuccess = False 回傳錯誤訊息

批次單 BatchResult 欄位

Return type : Object

參數類別說明
function_typeint功能別 : 0 新單、 10 新單執行、 15 改價、 20 改量、30刪單 、90失敗
datestring交易日期
branch_nostring分公司代號
accountstring帳號
batch_seq_nostring批次單流水序號

請求範例

auto batch_list = sdk->stock->batch_order_lists(target_account);
if (!batch_list.is_success) {
std::cout << "Get batch list result failed reason: "
<< (batch_list.message.has_value() ? batch_list.message.value() : "No message")
<< std::endl;
}
else {
if (batch_list.data.has_value()) {
std::cout << batch_list << std::endl;
}
else {
std::cout << "Get batch list success but no data returned." << std::endl;
}
}

回傳範例

{
isSuccess = true,
message = ,
data = [
BatchResult{
functionType = 0, // 功能種類 (int)
date = 2023/10/04, // 交易日期 (string)
branchNo = 6460, // 分公司代號 (string)
account = 26, // 帳號 (string)
batchSeqNo = 11EE626533D072228000000C29304663 // 批次單流水序號 (string)
},
...
]
}