Get Order Results (Include Detail)
getOrderResultsDetail
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| marketType | FutOptMarketType (Optional : If not specified, it includes all) | Trading session type : Future 、 Option 、 FutureNight After-Hour Future 、 OptionNight After-Hour Option |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Interface result |
| data | Object | FutOptOrderResult list is returned |
| message | string ? (optional) | isSuccess = False error description is returned |
FutOptOrderResult Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| functionType | int (optional) | Function Type : 0 New 、 10 Execute New、15 Amend Price 、 20 Amend Lot 、 30 Cancel |
| date | string | Transaction date |
| seqNo | string | Order serial number |
| branchNo | string | Branch number |
| account | string | Account |
| orderNo | string | Order number |
| assetType | number | Asset type : 1 Future 、2 Option |
| market | string | Market type : TAIMEX Future、Option |
| marketType | js:string / ts:FutOptMarketType | Trading session type : Future 、 Option 、 FutureNight After-Hour Future 、 OptionNight After-Hour Option |
| unit | number | Trading Unit |
| currency | string | Trading Currency |
| symbol | string | Symbol |
| expiryDate | string | Expiry Date |
| strikePrice | number | Strike Price |
| callPut | js:string / ts:CallPut | Call / Put Type : Call Call 、Put Put |
| buySell | js:string / ts:BSAction | Buy/Sell Type : Buy 、 Sell |
| symbolLeg2 | string | Symbol - Spread Order |
| expiryDateLeg2 | string | Expiry Date - Spread Order |
| strikePriceLeg2 | number | Strike Price - Spread Order |
| callPutLeg2 | js:string / ts:CallPut | Call / Put Type : Call Call 、Put Put |
| buySellLeg2 | js:string / ts:BSAction | Buy/Sell Type : Buy 、 Sell |
| priceType | js:string / ts:FutOptPriceType | Original order price type : Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
| price | number | Order Price |
| lot | number | Original order lot |
| timeInForce | js:string / ts:TimeInForce | Time In Force ROD 、 FOK 、 IOC |
| orderType | js:string / ts:FutOptOrderType | Order Type : New 、 Close 、 Auto 、 FdayTrade |
| isPreOrder | bool | Reservation Flag |
| status | number | Order 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 |
| afterPriceType | js:string / ts:FutOptPriceType | Valid order price type : Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
| afterPrice | number | Valid order price |
| afterLot | number | Valid Order Lot |
| filledLot | number | Filled Lot |
| filledMoney | number | Filled Value |
| beforeLot | number | Before the Lot Modification |
| beforePrice | number | Before the Price Modification |
| userDef | string | Custom Fields |
| lastTime | string | Last Modification Time |
| details | list | Order Process |
| >> functionType | number | Function Type : 10 Execute New、 15 Amend Price 、 20 Amend Quantity 、 30 Cancel 、50 Fully Filled、90Failed |
| >> modifiedTime | string | Order Modified Time |
| >> beforeQty | number | Original Order Quantity |
| >> afterQty | number | Valid Order Quantity (filled quantity included) |
| >> beforePrice | number | Original Order Price |
| >> afterPrice | number | Valid Order Price |
| >> filledMoney | number | Filled Value |
| >> errorMessage | string | Error Message |
| errorMessage | string | Error Message |
Request Example
const orders = sdk.futopt.getOrderResultsDetail(accounts.data[0]);
console.log(orders);
Response Example
{
isSuccess: true,
data:[
{
functionType: null, // Function type (number)
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 quantity (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 Lot (number)
beforePrice: 1822.6, // Original Order Price (number)
afterPrice: 1822.6 // Valid Order Price (number)
}
]
},
...
]
}