Get Time Slice Order
get_time_slice_order
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| account | Account | Account |
| batchNo | string | Time Slice Batch No |
Result Return
| Parameter | Type | Description |
|---|---|---|
| is_success | bool | Is Success |
| data | List | Condition Order Return Info |
| message | string ? (optional) | Error message when isSuccess = false |
Order Info ConditionDetail Fields
Return type : Object
| Parameter | Type | Description |
|---|---|---|
| guid | string | Condition Order GUID |
| batch_no | string | Batch No |
| order_level | string | Order Level |
| last_time | string | Last Update Time |
| parent_guid | string | Parent Order GUID |
| symbol | string | Stock Symbol |
| order_amount | string | Order Amount |
| child_batch_no | string | Child Batch No |
| account | string | Account |
| condition_content | string | Condition Content |
| action | string | Action |
| condition_buy_sell | string | Condition Buy/Sell |
| condition_symbol | string | Condition Symbol |
| condition_price | string | Price |
| condition_volume | string | Order Volume |
| condition_filled_volume | string | Filled Volume |
| create_time | string | Create Time |
| start_date | string | Scheduled Start Time |
| status | string | Current Status |
| error_message | string | Error Message |
| detail_records_count | string | Detail Records Count |
| detail_records | List | Detail Records Data |
| >> guid | string | Condition Order GUID |
| >> account | string | Account |
| >> condition_content | string | Condition Content |
| >> action | string | Action |
| >> condition_buy_sell | string | Condition Buy/Sell |
| >> condition_symbol | string | Condition Symbol |
| >> condition_price | string | Price |
| >> condition_volume | string | Order Volume |
| >> condition_filled_volume | string | Filled Volume |
| >> start_date | string | Scheduled Start Time |
| >> status | string | Current Status |
| >> error_message | string | Error Message |
| tpsl_count | string | TPSL Count |
| tpsl_record | List | TPSL Detail Records Data |
| >> guid | string | Condition Order GUID |
| >> account | string | Account |
| >> condition_content | string | Condition Content |
| >> action | string | Action |
| >> condition_buy_sell | string | Condition Buy/Sell |
| >> condition_symbol | string | Condition Symbol |
| >> condition_price | string | Price |
| >> condition_volume | string | Order Volume |
| >> condition_filled_volume | string | Filled Volume |
| >> start_date | string | Scheduled Start Time |
| >> status | string | Current Status |
| >> error_message | string | Error Message |
Request Example
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;
}
}
Return Example
{
isSuccess = true,
message = ,
data = [
ConditionDetail{
Guid = c4dc90c1-4277-42ea-b585-085dc347eac0,
BatchNo = ,
OrderLevel = 0,
LastTime = 2024-07-23 17:30:01,
ConditionType = Time Slice,
ParentGuid = ,
Symbol = 2881,
OrderAmount = 0,
ChildBatchNo = ,
Account = 1307515,
ConditionContent = At 2024/07/23, Time Slice Time >= 08:40:00, Until Full Execution,
Action = Order,
ConditionBuySell = Stock Buy,
ConditionSymbol = Fubon Financial Stock Buy,
ConditionPrice = 66(ROD),
ConditionVolume = 1 lot,
ConditionFilledVolume = 0 lot,
CreateTime = 2024-07-22 17:30:03,
StartDate = 2024/07/23,
Status = Condition Stop(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 = Time Slice,
ParentGuid = ,
Symbol = 2881,
OrderAmount = 0,
ChildBatchNo = ,
Account = 1307515,
ConditionContent = At 2024/07/23, Time Slice Time >= 09:10:00, Until Full Execution,
Action = Order,
ConditionBuySell = Stock Buy,
ConditionSymbol = Fubon Financial Stock Buy,
ConditionPrice = 66(ROD),
ConditionVolume = 1 lot,
ConditionFilledVolume = 0 lot,
CreateTime = 2024-07-22 17:30:03,
StartDate = 2024/07/23,
Status = Condition Stop(I),
ErrorMessage = ,
DetailRecordsCount = 0,
DetailRecords = [],
TpslCount = 0,
TpslRecord = []
}
]
}