Skip to main content

Get Batch Order Detail

batchOrderDetail

Request Parameter

ParameterTypeMeaning
accountAccountAccount
BatchOrderListBatchResultBatch order list

Result Response

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

FutOptOrderResult Parameter

Return type : Object

ParameterTypeMeaning
functionTypenumberFunction Type : 0 New 、 10 Execute New、15 Amend Price 、 20 Amend Lot 、 30 Cancel、90Failed
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 : FutureOptionFutureNight 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 : BuySell
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 : BuySell
priceTypejs:string / ts:FutOptPriceTypeOriginal order price type : LimitMarketRangeMarket Market with Protection Orders 、 Reference
pricenumberOrder Price
lotnumberOriginal order lot
timeInForcejs:string / ts:TimeInForceTime In Force RODFOKIOC
orderTypejs:string / ts:FutOptOrderTypeOrder Type : NewCloseAutoFdayTrade
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 : LimitMarketRangeMarket 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 (Return value when query orderResultDetail or orderHistory )
errorMessagestringError Message
caution

This function is only for querying the execution results of batch orders. To obtain the latest status of an order, please use the single order inquiry function.

Request Example

const batch_order_list = sdk.futopt.batchOrderLists(account)
sdk.futopt.batchOrderDetail(account, batch_order_list.data[0])

Response Example

{
isSuccess: true,
data:[
{
date: "2024/03/05", // Transaction date (string)
seqNo: "00110212608", // Order sequence number (string)
branchNo: "15901", // Branch number (string)
account: "1234567", // Account (string)
orderNo: "C0201", // 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 quantity (number)
timeInForce: ROD, // Time in force (TimeInforce)
orderType: Auto, // Order type (FutOptOrderType)
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)
},
...
]
}