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
Support 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 |
symbol | string | Symbol |
expiryDate | string | Expiry Date |
strikePrice | number | Strike Price |
callPut | CallPut | Call / Put : Call 、Put |
buySell | js:string / ts:BSAction | Buy/Sell Type : Buy 、 Sell |
symbolLeg2 | string | Spread Symbol |
expiryDateLeg2 | string | Expiry Date - Spread Order |
strikePriceLeg2 | number | Strike Price - Spread Order |
callPutLeg2 | CallPut | Call / Put : Call 、Put |
buySellLeg2 | BSAction | Buy/Sell Type - Spread Order: Buy 、 Sell |
orderType | js:string / ts:FutOptOrderType | Order Type : New 、 Close 、 FdayTrade |
filledNo | string | Filled Serial Number |
filledAvgPrice | number | Filled Average Price |
filledLot | number | Filled Lot |
filledPrice | number | Filled Price |
filledTime | string | Filled Time |
userDef | string | Custom Fields (only display on filled callback) |
Request Example
const filledHistory = sdk.futopt.filledHistory(account,"20230921","20230922");
console.log(filledHistory)
Response Example
{
isSuccess: true,
data:[
{
date: "2023/09/21", // 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)
},
...
]
}