Get Order Results (Include Detail)
get_order_results_detail
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
market_type | 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 |
---|---|---|
is_success | bool | Interface result |
data | List | FutOptOrderResult list is returned |
message | string | is_success = False error description is returned |
FutOptOrderResult Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
function_type | int (optional) | Function Type : 0 New 、 10 Execute New、15 Amend Price 、 20 Amend Lot 、 30 Cancel 、90 Failed |
date | string | Transaction Date |
seq_no | string | Order Serial Number |
branch_no | string | Branch Number |
account | string | Account |
order_no | string | Order Number |
asset_type | int | Asset Type : 1 Future 、2 Option |
market | string | Market Type : TAIMEX Future、Option |
market_type | FutOptMarketType | Trading Session Type : Future 、 Option 、 FutureNight After-Hour Future、 OptionNight After-Hour Option |
unit | int | Unit |
currency | string | Trading Currency |
symbol | string | Symbol |
expiry_date | string | Expiry Date |
strike_price | float | Strike Price |
call_put | CallPut | Call / Put : Call 、Put |
buy_sell | BSAction | Buy/Sell Type : Buy 、 Sell |
symbol_leg2 | string | Spread Symbol |
expiry_date_leg2 | string | Expiry Date - Spread Order |
strike_price_leg2 | float | Strike Price - Spread Order |
call_put_leg2 | CallPut | Call / Put : Call 、Put |
buy_sell_leg2 | BSAction | Buy/Sell Type - Spread Order: Buy 、 Sell |
price_type | FutOptPriceType | Original Order Price Type : Limit 、 Market 、RangeMarket Market with Protection Orders 、 Reference |
price | float | Order Price |
lots | int | Original Order Lot |
time_in_force | TimeInForce | Time In Force : ROD FOK 、 IOC |
order_type | FutOptOrderType | Order Type : New 、 Close 、 Auto 、 FdayTrade DayTrade |
is_pre_order | bool | Reservation Order 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 |
after_price_type | FutOptPriceType | Valid Order Price Type : Limit Market 、RangeMarket Market with Protection Orders 、 Reference |
after_price | float | Valid Order Price |
after_lot | int | Valid Order Lot |
filled_lot | int | Filled Lot |
filled_money | float | Filled Value |
before_lot | int | Before the Lot Modification |
before_price | float | Before the Price Modification |
user_def | string | Custom Fields |
last_time | string | Last Modification Time |
details | list | Order Process |
>> function_type | int | Function Type : 10 Execute New、 15 Amend Price 、 20 Amend Quantity 、 30 Cancel 、50 Fully Filled、90 Failed |
>> modified_time | string | Order Modified Time |
>> before_lot | int | Original Order Lot |
>> after_lot | int | Valid Order Lot |
>> before_price | float | Original Order Price |
>> after_price | float | Valid Order Price |
>> filled_money | float | Filled Value |
>> error_message | string | Error Message |
error_message | string | Error Message |
Request Example
sdk.futopt.get_order_results_detail(accounts.data[0])
Response Example
Result {
is_success: True,
message: None,
data : [
FutOptOrderResult{
function_type: None, # Function type (int)
date: "2024/03/25", # Transaction date (string)
seq_no: "00110212608", # Order sequence number (string)
branch_no: "15901", # Branch number (string)
account: "1234567", # Account (string)
order_no: "C0001", # Order number (string)
asset_type: 1, # Asset type (int)
market: "TAIMEX", # Market type (string)
market_type: Future, # Trading Session Type (FutOptMarketType)
unit: 1, # Unit (int)
currency: "TWD", # Currency (string)
symbol: "FITF", # Symbol (string)
expiry_date: "202404", # Expiry date (string)
strike_price: None, # Strike price (float)
call_put: None, # Call or put (CallPut)
buy_sell: Buy, # Buy or sell (BSAction)
symbol_leg2: None, # Symbol - Spread Order (string)
expiry_date_leg2: None, # Expiry date - Spread Order (string)
strike_price_leg2: None, # Strike price - Spread Order (float)
call_put_leg2: None, # Call or put - Spread Order (CallPut)
buy_sell_leg2: None, # Buy or sell - Spread Order (BSAction)
price_type: Limit, # Original order price type (PriceType)
price: 1822.6, # Price (float)
lot: 2, # Original order Lot (int)
time_in_force: ROD, # Time in force (TimeInforce)
order_type: Auto, # Order type (OrderType)
is_pre_order: false, # Is pre-order (bool)
status: 10, # Order status (int)
after_price_type: None, # Valid order price type (PriceType)
after_price: 1822.6, # Valid order price (float)
after_lot: 2, # Valid order Lot (int)
filled_lot: 0, # Filled Lot (int)
filled_money: 0, # Filled amount (int)
before_lot: None, # Lot before amendment (int)
before_price: None, # Price before amendment (float)
user_def: None, # User-defined field (string)
last_time: "10:20:27", # Last modification time (string)
details:[
OrderDetail{
function_type: 10, # Function Type (int)
modified_time: "10:20:27", # Order Modified Time (string)
before_lot: 0, # Original Order Lot (int)
after_lot: 2, # Valid Order Lot (int)
before_price: 1822.6, # Original Order Price (float)
after_price: 1822.6, # Valid Order Price (float)
error_message: None # Error Message (string)
}
],
error_message: None # Error message (string)
},
...
]
}