Skip to main content

Get Trail History

get_trail_history

Request Parameter

ParameterTypeMeaning
accountAccountAccount
start_datestringQuery Start Date
end_datestringQuery End Date

Result Response

ParameterTypeMeaning
isSuccessboolInterface result
datalistConditionDetail is returned
messagestring ? (optional)isSuccess = false error description is returned

ConditionDetail Parameter

Return type : Object

ParameterTypeMeaning
guidstringCondition Sequence Number
batch_nostringBatch number
order_levelstringCondition Level : 0 parent、1、2 Child
last_timestringLast Update Time
parent_guidstringParent Sequence Number
symbolstringSymbol
order_amountstringOrder Amount
child_batch_nostringChlid Batch Number
accountstringAccount
condition_contentstringCondition Content
actionstringCondition Trigger Action
condition_buy_sellstringBuy / Sell Action
condition_symbolstringSymbol Name
condition_pricestringOrder Price
condition_volumestringOrder Volume
condition_filled_volumestringFilled Volume
create_timestringCondition Creation Time
start_datestringCondition Start Date
statusstringStatus
error_messagestringError Message
detail_records_countstringDetail Count
detail_recordsListDetail Content
>> guidstringCondition Sequence Number
>> accountstringAccount
>> condition_contentstringCondition Content
>> actionstringCondition Trigger Action
>> condition_buy_sellstringBuy / Sell Action
>> condition_symbolstringSymbol Name
>> condition_pricestringSymbol Price
>> condition_volumestringOrder Volume
>> condition_filled_volumestringFilled Volume
>> start_datestringCondition Start Date
>> statusstringStatus
>> error_messagestringError Message
tpslCountstringTake Profit / Stop Loss Count
tpslRecordListTake Profit / Stop Loss Content
>> guidstringCondition Sequence Number
>> accountstringAccount
>> condition_contentstringCondition Content
>> actionstringCondition Trigger Action
>> condition_buy_sellstringBuy / Sell Action
>> condition_symbolstringSymbol Name
>> condition_pricestringSymbol Price
>> condition_volumestringOrder Volume
>> condition_filled_volumestringFilled Volume
>> start_datestringCondition Start Date
>> statusstringStatus
>> error_messagestringError Message

Request Example

sdk.stock.get_trail_order(account,"20240301","20240601")

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: [],
}
]
}