Skip to main content

Query Filled History

filled_history

Input Parameters

ParameterTypeMeaning
accountAccountAccount
start_datestring (optional)Query start date
end_datestring (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

ParameterTypeMeaning
is_successboolWhether successful
dataListFilledData list is returned
messagestringError message returned when is_success = false

FilledData Parameter

Return type : Object

ParameterTypeMeaning
datestringFilled Date
branch_nostringBranch number
accountstringAccount
seq_nostringOrder Serial Number (only display on filled callback)
order_nostringOrder number
stock_nostringSymbol
buy_sellBSActionBuy/Sell Type : Buy, Sell
filled_nostringFilled Transaction number
filled_avg_pricefloatFilled Average Price
filled_qtyintFilled Share
filled_pricefloatFilled Price
order_typeOrderTypeOrder Type : Stock, Margin, Short, DayTrade, SBL
filled_timestringFilled Time
user_defstringCustom 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)
},
...
]
}