Query Filled History
filled_history
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| start_date | string (optional) | 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
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Whether successful |
| data | List | FilledData list is returned |
| message | string | Error message returned when is_success = false |
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")
Response Example
Result {
is_success: True,
message: None,
data : [ FilledData{
date: "2023/09/15", # Fill date (string)
branch_no: "6460", # Branch code (string)
account: "26", # Account (string)
order_no: "bA422", # Order Number (string)
stock_no: "1101", # Symbol (string)
buy_sell: Sell, # Buy/sell side (BSAction)
filled_no: "00000000001", # Fill sequence number (string)
filled_avg_price: 35.2, # Average fill price (float)
filled_qty: 1000, # Filled quantity (int)
filled_price: 35.2, # Fill price (float)
order_type: Stock, # Order Type (OrderType)
filled_time: "10:31:00.931" # Fill time (string)
user_def: None # User-defined field (string)
},
...
]
}