Get Batch Order List
batch_order_lists
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| account | Account | Account Object |
Return Result
| Parameter | Type | Description |
|---|---|---|
| is_success | bool | Is Success |
| data | List | Returns Batch Order Information |
| message | string | Returns Error Message when isSuccess = False |
BatchResult Fields
Return type: Object
| Parameter | Type | Description |
|---|---|---|
| function_type | int | Function Type: 0 New Order, 10 Exec New, 15 Mod Price, 20 Mod Qty, 30 Cancel, 90 Failed |
| date | string | Trade Date |
| branch_no | string | Branch Code |
| account | string | Account |
| batch_seq_no | string | Batch 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)
},
...
]
}