Get Historical Filled
FilledHistory
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
startDate | string | Query start date |
endDate | string (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
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | List | FilledData list is returned |
message | string | isSuccess = False error description is returned |
FilledData Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | date | Filled Date |
branchNo | string | Branch number |
account | string | Account |
seqNo | string | Order serial number (only display on filled callback) |
orderNo | string | Order number |
stockNo | string | Symbol |
buySell | BsAction | Buy/Sell Type : Buy 、 Sell |
filledNo | string | Filled Transaction number |
filledAvgPrice | double | Filled Average Price |
filledQty | int | Filled Share |
filledPrice | double | Filled Price |
orderType | OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL |
filledTime | string | Filled Time |
userDef | string | Custom 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)
},
...
]
}