Skip to main content

Get Order Results (Include Detail)

getOrderResultsDetail

Request Parameter

ParameterTypeMeaning
accountAccountAccount
marketTypeFutOptMarketType (Optional : If not specified, it includes all)Trading session type : Future, Option, FutureNight After-Hour Future, OptionNight After-Hour Option

Result Response

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

FutOptOrderResult Parameter

Return type : Object

ParameterTypeMeaning
functionTypeint (optional)Function Type : 0 New, 10 Execute New, 15 Amend Price, 20 Amend Lot, 30 Cancel
datestringTransaction date
seqNostringOrder serial number
branchNostringBranch number
accountstringAccount
orderNostringOrder number
assetTypenumberAsset type : 1 Future, 2 Option
marketstringMarket type : TAIMEX Future, Option
marketTypejs:string / ts:FutOptMarketTypeTrading session type : Future, Option, FutureNight After-Hour Future, OptionNight After-Hour Option
unitnumberTrading Unit
currencystringTrading Currency
symbolstringSymbol
expiryDatestringExpiry Date
strikePricenumberStrike Price
callPutjs:string / ts:CallPutCall / Put Type : Call Call, Put Put
buySelljs:string / ts:BSActionBuy/Sell Type : Buy, Sell
symbolLeg2stringSymbol - Spread Order
expiryDateLeg2stringExpiry Date - Spread Order
strikePriceLeg2numberStrike Price - Spread Order
callPutLeg2js:string / ts:CallPutCall / Put Type : Call Call, Put Put
buySellLeg2js:string / ts:BSActionBuy/Sell Type : Buy, Sell
priceTypejs:string / ts:FutOptPriceTypeOriginal order price type : Limit, Market, RangeMarket Market with Protection Orders, Reference
pricenumberOrder Price
lotnumberOriginal order lot
timeInForcejs:string / ts:TimeInForceTime In Force ROD, FOK, IOC
orderTypejs:string / ts:FutOptOrderTypeOrder Type : New, Close, Auto, FdayTrade
isPreOrderboolReservation Flag
statusnumberOrder Status : 0 Reservation, 4 In queue, 8 Processing by system backend, 9 TimeOut, 10 Active Order, 30 Cancel Order, 50 Fully Filled, 90 Order Failed
afterPriceTypejs:string / ts:FutOptPriceTypeValid order price type : Limit, Market, RangeMarket Market with Protection Orders, Reference
afterPricenumberValid order price
afterLotnumberValid Order Lot
filledLotnumberFilled Lot
filledMoneynumberFilled Value
beforeLotnumberBefore the Lot Modification
beforePricenumberBefore the Price Modification
userDefstringCustom Fields
lastTimestringLast Modification Time
detailslistOrder Process
>> functionTypenumberFunction Type : 10 Execute New, 15 Amend Price, 20 Amend Quantity, 30 Cancel, 50 Fully Filled, 90Failed
>> modifiedTimestringOrder Modified Time
>> beforeQtynumberOriginal Order Quantity
>> afterQtynumberValid Order Quantity (filled quantity included)
>> beforePricenumberOriginal Order Price
>> afterPricenumberValid Order Price
>> filledMoneynumberFilled Value
>> errorMessagestringError Message
errorMessagestringError Message

Request Example

var account = accounts.data[0];
const orders = sdk.futopt.getOrderResultsDetail(account);
console.log(orders);

Response Example

{
isSuccess: true,
data:[
{
date: "2024/03/25", // Transaction date (string)
seqNo: "00110212608", // Order sequence number (string)
branchNo: "15901", // Branch number (string)
account: "1234567", // Account (string)
orderNo: "C0001", // Order number (string)
assetType: 1, // Asset type (number)
market: "TAIMEX", // Market type (string)
marketType: "Future", // Trading session type (FutOptMarketType)
unit: 1, // Unit (number)
currency: "TWD", // Currency (string)
symbol: "FITF", // Symbol (string)
expiryDate: "202404", // Expiry date (string)
buySell: "Buy", // Buy or sell (BSAction)
priceType: "Limit", // Original order price type (FutOptPriceType)
price: 1822.6, // Price (number)
lot: 2, // Original order lot (number)
timeInForce: "ROD", // Time in force (TimeInforce)
orderType: "Auto", // Order type (OrderType)
isPreOrder: false, // Is pre-order (bool)
status: 10, // Order status (number)
afterPrice: 1822.6, // Valid order price (number)
afterLot: 2, // Valid order quantity (number)
filledLot: 0, // Filled quantity (number)
filledMoney: 0, // Filled amount (number)
lastTime: "10:20:27", // Last modification time (string)
details:[
functionType: 10, // functionType (number)
modifiedTime: "10:20:27", // Order Modified Time (string)
beforeLot: 0, // Original Order Lot (number)
afterLot: 2, // Valid order quantity (number)
beforePrice: 1822.6, // Original Order Price (number)
afterPrice: 1822.6, // Valid order price (number)
status: 10 // Order status (number)
]
},
...
]
}