Skip to main content

Get Batch Order List

batch_order_lists

Input Parameters

ParameterTypeDescription
accountAccountAccount Object

Return Result

ParameterTypeDescription
is_successboolIs Success
dataListReturns Batch Order Information
messagestringReturns Error Message when isSuccess = False

BatchResult Fields

Return type: Object

ParameterTypeDescription
function_typeintFunction Type: 0 New Order, 10 Exec New, 15 Mod Price, 20 Mod Qty, 30 Cancel, 90 Failed
datestringTrade Date
branch_nostringBranch Code
accountstringAccount
batch_seq_nostringBatch Sequence Number

Request Example

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;
}
}

ReturnExample

{
isSuccess = true,
message = ,
data = [
BatchResult{
functionType = 0, // Function Type (int)
date = 2023/10/04, // Trade Date (string)
branchNo = 6460, // Branch Code (string)
account = 26, // Account (string)
batchSeqNo = 11EE626533D072228000000C29304663 // Batch Sequence Number (string)
},
...
]
}