Get Trail Order
get_trail_order
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
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.stock.get_trail_order(account)
Response Example
Result {
is_success: True,
message: None,
data :[
ConditionDetail {
guid: "5c154a76-e7ef-4b8f-94b5-80bf08fa4b8e",
batch_no: "",
order_level: "0",
last_time: "2024-08-02 16:45:01",
condition_type: None,
parent_guid: None,
symbol: "2889",
order_amount: "0",
child_batch_no: "",
account: "1307515",
condition_content: "從2024/08/02到2024/08/02內當國票金從1000(原始基準價),下跌達10%,持續至預定張數全部成交或期限到達為止",
action: "下單",
condition_buy_sell: "現股買",
condition_symbol: "國票金 (2889)",
condition_price: "成交價(1) 檔(ROD)",
condition_volume: "1張",
condition_filled_volume: "0張",
create_time: "2024-08-02 10:07:31",
start_date: "2024/08/02",
status: "條件單中止(I)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "0",
TPSLRecord: [],
}, ConditionDetail {
guid: "c71117c8-aa70-4477-9f04-ff4c73a4fad0",
batch_no: "",
order_level: "0",
last_time: "2024-07-29 17:30:00",
condition_type: None,
parent_guid: None,
symbol: "2330",
order_amount: "0",
child_batch_no: "",
account: "1307515",
condition_content: "從2024/07/29到2024/07/29內當台積電從860(原始基準價),上漲達5%,持續至預定張數全部成交或期限到達為止",
action: "下單",
condition_buy_sell: "現股買",
condition_symbol: "台積電 (2330)",
condition_price: "成交價(5) 檔(ROD)",
condition_volume: "2張",
condition_filled_volume: "0張",
create_time: "2024-07-29 11:01:49",
start_date: "2024/07/29",
status: "條件單中止(I)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "0",
TPSLRecord: [],
}
]
}