Get Trail Order
get_trail_order
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| marketType | FutOptConditionMarketType | Market Type |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Interface result |
| data | list | ConditionDetail is returned |
| message | string ? (optional) | isSuccess = false error description is returned |
ConditionDetail Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| guid | string | Condition Sequence Number |
| batch_no | string | Batch number |
| order_level | string | Condition Level : 0 parent、1、2 Child |
| last_time | string | Last Update Time |
| parent_guid | string | Parent Sequence Number |
| symbol | string | Symbol |
| order_amount | string | Order Amount |
| child_batch_no | string | Chlid Batch Number |
| account | string | Account |
| condition_content | string | Condition Content |
| action | string | Condition Trigger Action |
| condition_buy_sell | string | Buy / Sell Action |
| condition_symbol | string | Symbol Name |
| condition_price | string | Order Price |
| condition_volume | string | Order Volume |
| condition_filled_volume | string | Filled Volume |
| create_time | string | Condition Creation Time |
| start_date | string | Condition Start Date |
| status | string | Status |
| error_message | string | Error Message |
| detail_records_count | string | Detail Count |
| detail_records | List | Detail Content |
| >> guid | string | Condition Sequence Number |
| >> account | string | Account |
| >> condition_content | string | Condition Content |
| >> action | string | Condition Trigger Action |
| >> condition_buy_sell | string | Buy / Sell Action |
| >> condition_symbol | string | Symbol Name |
| >> condition_price | string | Symbol Price |
| >> condition_volume | string | Order Volume |
| >> condition_filled_volume | string | Filled Volume |
| >> start_date | string | Condition Start Date |
| >> status | string | Status |
| >> error_message | string | Error Message |
| tpslCount | string | Take Profit / Stop Loss Count |
| tpslRecord | List | Take Profit / Stop Loss Content |
| >> guid | string | Condition Sequence Number |
| >> account | string | Account |
| >> condition_content | string | Condition Content |
| >> action | string | Condition Trigger Action |
| >> condition_buy_sell | string | Buy / Sell Action |
| >> condition_symbol | string | Symbol Name |
| >> condition_price | string | Symbol Price |
| >> condition_volume | string | Order Volume |
| >> condition_filled_volume | string | Filled Volume |
| >> start_date | string | Condition Start Date |
| >> status | string | Status |
| >> error_message | string | Error Message |
Request Example
sdk.futopt.get_trail_order(account)
Response Example
Result {
is_success: True,
message: None,
data : [
ConditionDetail {
guid: "1d97125b-9847-4b30-a066-2b490be17b2d",
batch_no: "",
order_level: "0",
last_time: "2024-09-15 10:33:33",
condition_type: "移動鎖利",
parent_guid: "",
symbol: "FITX202411",
order_amount: "0",
child_batch_no: "",
account: "9974825",
condition_content: "當自2024/09/15至2024/11/16內台指期202411成交價小於等於20000點 全部成交為止",
action: "下單(新倉)",
condition_buy_sell: "買",
condition_symbol: "台指期202411 買",
condition_price: "賣出價(3) 檔(ROD)",
condition_volume: "1口",
condition_filled_volume: "0口",
create_time: "2024-09-15 10:33:33",
start_date: "2024/09/15",
status: "洗價中(Y)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "0",
TPSLRecord: [],
}
...
]
}