Get Historical Order
OrderHistory
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
startDate | string | Query start date |
endDate | string | Query end date |
marketType | FutOptMarketType (Optional : If not specified, it includes all) | Trading session type : Future 、 Option 、 FutureNight After-Hour Future 、 OptionNight After-Hour Option |
info
Support historical data for the past two days
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | List | FutOptOrderResult list is returned |
message | string | 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 | int | Asset type : 1 Future 、2 Option |
market | string | Market type : TAIMEX Future、Option |
marketType | FutOptMarketType | Trading session type : Future 、 Option 、 FutureNight After-Hour Future 、 OptionNight After-Hour Option |
unit | int | Trading Unit |
currency | string | Trading Currency |
symbol | string | Symbol |
expiryDate | string | Expiry Date |
strikePrice | double | Strike Price |
callPut | CallPut | Call / Put Type : Call Call 、Put Put |
buySell | BsAction | Buy/Sell Type : Buy 、 Sell |
symbolLeg2 | string | Symbol - Spread Order |
expiryDateLeg2 | string | Expiry Date - Spread Order |
strikePriceLeg2 | double | Strike Price - Spread Order |
callPutLeg2 | CallPut | Call / Put Type : Call Call 、Put Put |
buySellLeg2 | BsAction | Buy/Sell Type : Buy 、 Sell |
priceType | FutOptPriceType | Original order price type : Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
price | double | Order Price |
lot | int | Original order lot |
timeInForce | TimeInForce | Time In Force Rod 、 Fok 、 Ioc |
orderType | FutOptOrderType | Order Type : New 、 Close 、 Auto 、 FdayTrade |
isPreOrder | bool | Reservation Flag |
status | int | 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 | FutOptPriceType | Valid order price type : Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
afterPrice | double | Valid order price |
afterLot | int | Valid Order Lot |
filledLot | int | Filled Lot |
filledMoney | double | Filled Value |
beforeLot | int | Before the Lot Modification |
beforePrice | double | Before the Price Modification |
userDef | string | Custom Fields |
lastTime | string | Last Modification Time |
details | list | Order Process |
>> functionType | int | Function Type : 10 Execute New、 15 Amend Price 、 20 Amend Quantity 、 30 Cancel 、50 Fully Filled、90 Failed |
>> modifiedTime | string | Order Modified Time |
>> beforeQty | int | Original Order Quantity |
>> afterQty | int | Valid Order Quantity (filled quantity included) |
>> beforePrice | double | Original Order Price |
>> afterPrice | double | Valid Order Price |
>> filledMoney | double | Filled Value |
>> errorMessage | string | Error Message |
errorMessage | string | Error Message |
Request Example
Console.WriteLine(sdk.FutOpt.OrderHistory(account, FutOptMarketType.Option, "20230921", "20230922"));
Response Example
{
isSuccess = True,
message = ,
data =[
FutOptOrderResult{
function_type = 0, // Function Type (int): `0` New, `15` Amend Price, `20` Amend Lot, `30` Cancel
date = 2024/04/11, // Transaction Date (string)
seq_no = 00230177314, // Order Serial Number (string)
branch_no = 15000, // Branch Number (string)
account = 9974825, // Account (string)
order_no = C0020, // Order Number (string)
asset_type = 2, // Asset Type (int): `1` Future, `2` Option
market = TAIMEX, // Market Type (string)
market_type = Option, // Trading Session Type (FutOptMarketType): `Future`, `Option`, `FutureNight` After-Hour Future, `OptionNight` After-Hour Option
unit = , // Unit (int)
currency = , // Trading Currency (string)
symbol = TXO, // Symbol (string)
expiry_date = 202404, // Expiry Date (string)
strike_price = 18600, // Strike Price ( double)
call_put = Call, // Call / Put (CallPut): `Call`, `Put`
buy_sell = Buy, // Buy/Sell Type (BsAction): `Buy`, `Sell`
symbol_leg2 = , // Spread Symbol (string)
expiry_date_leg2 = , // Expiry Date - Spread Order (string)
strike_price_leg2 = , // Strike Price - Spread Order ( double)
call_put_leg2 = , // Call / Put - Spread Order (CallPut)
buy_sell_leg2 = , // Buy/Sell Type - Spread Order (BsAction)
price_type = Limit, // Original Order Price Type (FutOptPriceType): `Limit`, `Market`, `RangeMarket` Market with Protection Orders, `Reference`
price = 2100, // Order Price ( double)
lot = 1, // Original Order Lot (int)
time_in_force = ROD, // Time In Force (TimeInForce): `ROD`, `FOK`, `IOC`
order_type = New, // Order Type (FutOptOrderType): `New`, `Close`, `Auto`, `FdayTrade` DayTrade
is_pre_order = false, // Reservation Order Flag (bool)
status = 50, // Order Status (int): `0` Reservation, `4` InQueue, `9` TimeOut, `10` New Order, `30` Cancel Order, `50` Fully Filled, `90` Order Failed
after_price_type = , // Valid Order Price Type (FutOptPriceType): `Limit`, `Market`, `RangeMarket` Market with Protection Orders, `Reference`
after_price = 2100, // Valid Order Price ( double)
after_lot = 1, // Valid Order Lot (int)
filled_lot = 1, // Filled Lot (int)
filled_money = 2100, // Filled Value ( double)
before_lot = , // Before the Lot Modification (int)
before_price = , // Before the Price Modification ( double)
user_def = , // Custom Fields (string)
last_time = 10:41:46.760, // Last Modification Time (string)
error_message = // Error Message (string)
},
...
]
}