Skip to main content

Get Historical Filled

filled_history

Request Parameter

ParameterTypeMeaning
accountAccountAccount
start_datestringQuery start date
end_datestring (optional) ( None or empty will equals start_date)Query end date
info

Support historical data for the past two days

Result Response

ParameterTypeMeaning
is_successboolInterface result
dataListFilledData list is returned
messagestringis_success = False error description is returned

FutOptFilledData Parameter

Return type : Object

ParameterTypeMeaning
datestringFilled Date
branch_nostringBranch number
accountstringAccount
seq_nostringOrder Serial Number (only display on filled callback)
order_nostringOrder number
symbolstringsymbol
expiry_datestringExpiry Date
strike_pricefloatStrike Price
call_putCallPutCall / Put : CallPut
buy_sellBSActionBuy/Sell Type : BuySell
symbol_leg2stringSpread Symbol
expiry_date_leg2stringExpiry Date - Spread Order
strike_price_leg2floatStrike Price - Spread Order
call_put_leg2CallPutCall / Put : CallPut
buy_sell_leg2BSActionBuy/Sell Type - Spread Order: BuySell
filled_nostringFilled Transaction number
filled_avg_pricefloatFilled Average Price
filled_lotintFilled Share
filled_pricefloatFilled Price
order_typeFutOptOrderTypeOrder Type : NewCloseFdayTrade
filled_timestringFilled Time
user_defstringCustom Fields (only display on filled callback)

Request Example

sdk.futopt.filled_history(account,"20230921","20230922")

回傳範例

Result {
is_success: True,
message: None,
data :[
FutOptFilledData{
date: "2023/09/21", # 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)
symbol: "FITX", # Symbol (string)
expiry_date: "202404", # Expiry Date (string)
strike_price: None, # Strike Price (float)
call_put: None, # Call / Put (CallPut)
buy_sell: Buy, # Buy / Sell (BSAction)
symbol_leg2: None, # Symbol - Spread Order(string)
expiry_date_leg2: None, # Expiry Date - Spread Order(string)
strike_price_leg2: None, # Strike Price - Spread Order(float)
call_put_leg2: None, # Call / Put - Spread Order(CallPut)
buy_sell_leg2: None, # Buy / Sell - Spread Order(BSAction)
filled_no: "00000000001", # Filled Transaction number (string)
filled_avg_price: 20890.0, # Filled Average Price (float)
filled_lots: 1, # Filled Lot (int)
filled_price: 20890.0, # Filled Price (float)
order_type: New, # Order Type (string)
filled_time: "10:31:00.931" # Filled Time (string)
user_def: None # Custom Fields (string)
},
...
]
}