Get Historical Filled
filled_history
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
start_date | string | Query start date |
end_date | string (optional) ( None or empty will equals start_date) | Query end date |
info
Since v2.1.1, this supports longer term historical data inquiry. The day range is limited maximum 30 days per request. For older SDK versions (until v2.1.0), it supports historical data for the past two days.
Result Response
Parameter | Type | Meaning |
---|---|---|
is_success | bool | Interface result |
data | List | FilledData list is returned |
message | string | is_success = False error description is returned |
FilledData Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | Filled Date |
branch_no | string | Branch number |
account | string | Account |
seq_no | string | Order Serial Number (only display on filled callback) |
order_no | string | Order number |
stock_no | string | Symbol |
buy_sell | BSAction | Buy/Sell Type : Buy 、 Sell |
filled_no | string | Filled Transaction number |
filled_avg_price | float | Filled Average Price |
filled_qty | int | Filled Share |
filled_price | float | Filled Price |
order_type | OrderType | Order Type : Stock 、 Margin 、 Short 、 DayTrade 、 SBL |
filled_time | string | Filled Time |
user_def | string | Custom Fields (only display on filled callback) |
Request Example
sdk.stock.filled_history(account,"20230921","20230922")
回傳範例
Result {
is_success: True,
message: None,
data :[
FilledData{
date: "2023/09/15", # Filled Date (string)
branch_no: "6460", # Branch number (string)
account: "26", # Account (string)
seq_no: None, # Order Serial Number (string)
order_no: "bA422", # Order number (string)
stock_no: "1101", # Symbol (string)
buy_sell: 2, # Buy/Sell Type (int)
filled_no: "00000000001", # Filled Transaction number (string)
filled_avg_price: 35.2, # Filled Average Price (float)
filled_qty: 1000, # Filled Share (int)
filled_price: 35.2, # Filled Price (float)
order_type: "Stock", # Order Type (string)
filled_time: "10:31:00.931" # Filled Time (string)
user_def: None # Custom Fields (string)
},
...
]
}