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 Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | FilledData list is returned |
message | string ? (optional) | isSuccess = False error description is returned |
FilledData Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | 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 | js:string / ts:BSAction | Buy/Sell Type : Buy 、 Sell |
orderType | js:string / ts:OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL |
filledNo | string | Filled Serial Number |
filledAvgPrice | number | Filled Average Price |
filledQty | number | Filled Share |
filledPrice | number | Filled Price |
filledTime | string | Filled Time |
userDef | string | Custom Fields (only display on filled callback) |
Request Example
const filledHistory = sdk.stock.filledHistory(account,"20230921","20230922");
console.log(filledHistory)
Response Example
{
isSuccess: true,
data:[
{
date: '2023/08/29', // Filled Date (string)
branchNo: '6460', // Branch number (string)
account: '26', // Account (string)
orderNo: 'bA047', // Order number (string)
stockNo: '1101', // Symbol (string)
buySell: 1, // Buy/Sell Type (number)
orderType: 0, // Order Type (number)
filledNo: '00000000001', // Filled Transaction number (string)
filledAvgPrice: 35.3, // Filled Average Price (number)
filledQty: 1000, // Filled Share (number)
filledPrice: 35.3, // Filled Price (number)
filledTime: '10:14:36.549' // Filled Time (string)
},
{
date: '2023/08/29', // Filled Date (string)
branchNo: '6460', // Branch number (string)
account: '26', // Account (string)
orderNo: 'bA052', // Order number (string)
stockNo: '1101', // Symbol (string)
buySell: 1, // Buy/Sell Type (number)
orderType: 0, // Order Type (number)
filledNo: '00000000002', // Filled Transaction number (string)
filledAvgPrice: 35.3, // Filled Average Price (number)
filledQty: 1000, // Filled Share (number)
filledPrice: 35.2, // Filled Price (number)
filledTime: '10:31:00.931' // Filled Time (string)
},
...
]
}