Time-Sliced Order Query
get_time_slice_order
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| account | Account | Account |
| batch_no | string | Time-Sliced Order |
Result
| Parameter | Type | Description |
|---|---|---|
| isSuccess | bool | Whether successful |
| data | List | Conditional order response information |
| message | string ? (optional) | When isSuccess = false Returns an error message |
Order Information ConditionDetail Fields
Return type : Object
| Parameter | Type | Description |
|---|---|---|
| guid | string | Conditional Order ID |
| batch_no | string | Split-order batch number |
| order_level | string | Conditional order level |
| last_time | string | Update time |
| parent_guid | string | Parent order ID |
| symbol | string | Symbol |
| order_amount | string | Order amount |
| child_batch_no | string | Child split-order batch number |
| account | string | Account |
| condition_content | string | Condition content |
| action | string | Action |
| condition_buy_sell | string | Side |
| condition_symbol | string | Instrument name |
| condition_price | string | Price |
| condition_volume | string | Order quantity |
| condition_filled_volume | string | Filled quantity |
| creat_time | string | Creation time |
| start_date | string | Scheduled start time |
| status | string | Current status |
| error_message | string | Current statusErrorDescription |
| detail_records_count | string | Detail record count |
| detail_records | List | Detail records |
| >> guid | string | Conditional Order ID |
| >> account | string | Account |
| >> condition_content | string | Condition content |
| >> action | string | Action |
| >> condition_buy_sell | string | Side |
| >> condition_symbol | string | Instrument name |
| >> condition_price | string | Price |
| >> condition_volume | string | Order quantity |
| >> condition_filled_volume | string | Filled quantity |
| >> start_date | string | Scheduled time |
| >> status | string | Current status |
| >> error_message | string | Current statusErrorDescription |
| tpslCount | string | Take-Profit/Stop-Lossrecord count |
| tpslRecord | List | Take-Profit/Stop-LossDetail records |
| >> guid | string | Conditional Order ID |
| >> account | string | Account |
| >> condition_content | string | Condition content |
| >> action | string | Action |
| >> condition_buy_sell | string | Side |
| >> condition_symbol | string | Instrument name |
| >> condition_price | string | Price |
| >> condition_volume | string | Order quantity |
| >> condition_filled_volume | string | Filled quantity |
| >> start_date | string | Scheduled time |
| >> status | string | Current status |
| >> error_message | string | Current statusErrorDescription |
Request Example
sdk.stock.get_time_slice_order(account,"123456")
Response Example
Result {
is_success: True,
message: None,
data :
ConditionDetail {
guid: "c4dc90c1-4277-42ea-b585-085dc347eac0",
batch_no: "",
order_level: "0",
last_time: "2024-07-23 17:30:01",
condition_type: "Time Slice",
parent_guid: "",
symbol: "2881",
order_amount: "0",
child_batch_no: "",
account: "1307515",
condition_content: "On2024/07/23 Scheduled orderTimeGreater than or equal to08:40:00 Until fully filled",
action: "Place order",
condition_buy_sell: "Cash equityBuy",
condition_symbol: "Fubon Financial Cash equityBuy",
condition_price: "66TWD(ROD)",
condition_volume: "1lots",
condition_filled_volume: "0lots",
create_time: "2024-07-22 17:30:03",
start_date: "2024/07/23",
status: "Conditional order terminated(I)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "0",
TPSLRecord: [],
}, ConditionDetail {
guid: "2975702e-f36f-4da4-bab6-1310344ec05d",
batch_no: "",
order_level: "0",
last_time: "2024-07-23 17:30:01",
condition_type: "Time Slice",
parent_guid: "",
symbol: "2881",
order_amount: "0",
child_batch_no: "",
account: "1307515",
condition_content: "On2024/07/23 Scheduled orderTimeGreater than or equal to09:10:00 Until fully filled",
action: "Place order",
condition_buy_sell: "Cash equityBuy",
condition_symbol: "Fubon Financial Cash equityBuy",
condition_price: "66TWD(ROD)",
condition_volume: "1lots",
condition_filled_volume: "0lots",
create_time: "2024-07-22 17:30:03",
start_date: "2024/07/23",
status: "Conditional order terminated(I)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "0",
TPSLRecord: [],
}
}