Day Trading Conditional Order Query
get_condition_daytade_by_id
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| account | Account | Account |
| guid | string | Conditional Order ID |
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_condition_daytrade_by_id(account,"8ff3472b-185a-488c-be5a-b478deda080c")
Response Example
Result {
is_success: True,
message: None,
data :
ConditionDetail {
guid: "8ff3472b-185a-488c-be5a-b478deda080c",
batch_no: "",
order_level: "1",
last_time: "2024-03-14 12:39:02",
condition_type: "Multiple conditions",
parent_guid: "58e7a51e-9701-4d26-bc16-18a392a840bd",
symbol: "2330",
order_amount: "0",
child_batch_no: "",
account: "1307515",
condition_content: "From2024/03/14to2024/07/04withinTSMCMatched priceGreater than or equal to580TWD Until fully filled",
action: "Place order (next-day offset) ",
condition_buy_sell: "Cash equitySell",
condition_symbol: "TSMC Cash equitySell",
condition_price: "580TWD(ROD)",
condition_volume: "5lots",
condition_filled_volume: "0lots",
creat_time: "2024-03-14 12:39:22",
start_date: "2024/03/14",
status: "Inactive(W)",
error_message: None,
detail_records_count: "0",
detail_records: [],
tpslCount: "0",
tpslRecord: [],
}
}