Skip to main content

Get Historical Filled

FilledHistory

Request Parameter

ParameterTypeMeaning
accountAccountAccount
startDatestringQuery start date
endDatestring (null or empty will equals startDate )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 Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataListFilledData list is returned
messagestringisSuccess = False error description is returned

FilledData Parameter

Return type : Object

ParameterTypeMeaning
datedateFilled Date
branchNostringBranch number
accountstringAccount
seqNostringOrder serial number (only display on filled callback)
orderNostringOrder number
stockNostringSymbol
buySellBsActionBuy/Sell Type : BuySell
filledNostringFilled Transaction number
filledAvgPricedoubleFilled Average Price
filledQtyintFilled Share
filledPricedoubleFilled Price
orderTypeOrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL
filledTimestringFilled Time
userDefstringCustom Fields (only display on filled callback)

Request Example

Console.WriteLine(sdk.Stock.FilledHistory(account,"20230921","20230922"));

Response Example

{
isSuccess = True,
message = ,
data =[
FilledData{
date = 2023/09/15, // Trade date (string)
branchNo = 6460, // Branch number (string)
account = 26, // Account (string)
seqNo = , // Order serial number (string)
orderNo = bA422, // Order number (string)
stockNo = 1101, // Stock symbol (string)
buySell = Sell, // Buy or sell direction (BsAction)
filledNo = 00000000001, // Filled transaction number (string)
filledAvgPrice = 35.2, // Filled Average Price (double)
filledQty = 1000, // Filled Share (int)
filledPrice = 35.2, // Filled Price (double)
orderType = Stock, // Order type (OrderType)
filledTime = 10:31:00.931 // Filled time (string)
user_def = , // Custom Fields (string)
},
...
]
}