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 Response

ParameterTypeMeaning
isSuccessboolInterface result
dataObjectFilledData list is returned
messagestring ? (optional)isSuccess = False error description is returned

FilledData Parameter

Return type : Object

ParameterTypeMeaning
datestringFilled Date
branchNostringBranch Number
accountstringAccount
seqNostringOrder serial number (only display on filled callback)
orderNostringOrder Number
stockNostringSymbol
buySelljs:string / ts:BSActionBuy/Sell Type : BuySell
orderTypejs:string / ts:OrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL
filledNostringFilled Serial Number
filledAvgPricenumberFilled Average Price
filledQtynumberFilled Share
filledPricenumberFilled Price
filledTimestringFilled Time
userDefstringCustom 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)
},
...
]
}