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

Support 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
symbolstringSymbol
expiryDatestringExpiry Date
strikePricenumberStrike Price
callPutCallPutCall / Put : Call, Put
buySelljs:string / ts:BSActionBuy/Sell Type : Buy, Sell
symbolLeg2stringSpread Symbol
expiryDateLeg2stringExpiry Date - Spread Order
strikePriceLeg2numberStrike Price - Spread Order
callPutLeg2CallPutCall / Put : Call, Put
buySellLeg2BSActionBuy/Sell Type - Spread Order: Buy, Sell
orderTypejs:string / ts:FutOptOrderTypeOrder Type : New, Close, FdayTrade
filledNostringFilled Serial Number
filledAvgPricenumberFilled Average Price
filledLotnumberFilled Lot
filledPricenumberFilled Price
filledTimestringFilled Time
userDefstringCustom Fields (only display on filled callback)

Request Example​

const filledHistory = sdk.futopt.filledHistory(account,FutOptMarketType.Future,"20230921","20230922");
console.log(filledHistory)

Response Example​

{
isSuccess: true,
data:[
{
date: "2023/09/15", // Filled Date (string)
branchNo: "6460", // Branch number (string)
account: "26", // Account (string)
orderNo: "bA422", // Order number (string)
symbol: "FITX", // Symbol (string)
expiryDate: "202404", // Expiry Date (string)
buySell: "Buy", // Buy / Sell (BSAction)
filledNo: "00000000001", // Filled Transaction number (string)
filledAvgPrice: 20890.0, // Filled Average Price (number)
filledLots: 1, // Filled Lot (number)
filledPrice: 20890.0, // Filled Price (number)
orderType: "New", // Order Type (string)
filledTime: "10:31:00.931", // Filled Time (string)
},
...
]
}