Skip to main content

Get Batch Order Detail

batch_order_detail

Request Parameter

ParameterTypeMeaning
accountAccountAccount
batch_order_listBatchResultBatch order list

Result Response

ParameterTypeMeaning
is_successboolInterface result
dataListOrderResult list is returned
messagestringis_success = False error description is returned

OrderResult Parameter

Return type : Object

ParameterTypeMeaning
function_typeint (optional)Function Type : 0 New Order 、 10 New Order Executed 、 15 Change Price 、 20 Change Quantity 、 30 Cancel 、 90 Failed
datestringTransaction Date
seq_nostringOrder Serial Number
branch_nostringBranch Number
accountstringAccount
order_nostringOrder Number
asset_typeintAsset Type : 0 Stock
marketstringMarket Type : TAIEX Listed 、 TAISDAQ OTC 、 TAIEMG EMG
market_typeMarketTypeTrading Session Type : CommonFixingIntradayOddOddEmgEmgOdd
stock_nostringSymbol
buy_sellBSActionBuy/Sell Type : BuySell
price_typePriceTypeOriginal Order Price Type : LimitLimitUpLimitDownMarketReference
pricefloatOrder Price
quantityintOriginal Order Quantity
time_in_forceTimeInForceTime In Force : ROD FOKIOC
order_typeOrderTypeOrder Type : StockMarginShortDayTradeSBL
is_pre_orderboolReservation Order Flag
statusintOrder Status : 0 Reservation 、 4 Sending to the system backend 、 9 Timeout 、 10 Active order 、 30 Canceled 、 40 Partially filled, others canceled 、 50 Fully filled 、 90 Failed
after_price_typePriceTypeValid Order Price Type : LimitLimitUpLimitDownMarketReference
after_pricefloatValid Order Price
unitintTrading Unit
after_qtyintValid Order Quantity (filled quantity included)
filled_qtyintFilled Quantity
filled_moneyintFilled Value
before_qtyintBefore the Quantity Modification
before_pricefloatBefore the Price Modification
user_defstringCustom Fields
last_timestringLast Modification Time
detailslistOrder Process (Return value when query order_result_detail or order_history )
error_messagestringError 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

batch_results = sdk.stock.batch_order_lists(account)
sdk.stock.batch_order_detail(account, batch_results.data[0])

Response Example

Result {
is_success: True,
message: None,
data :[
OrderResult{
function_type: None, # Function Type (int)
date: "2023/10/16", # Trading date (string)
seq_no: "00000000005", # Order Serial Number (string)
branch_no: "6460", # Branch Number (string)
account: "26", # Account (string)
order_no: "bA632", # Order Number (string)
asset_type: 0, # Asset Type (int)
market: "TAIEX", # Market Category (string)
market_type: Common, # Trading Session Type (MarketType)
stock_no: "2888", # Symbol (string)
buy_sell: Buy, # Buy / Sell Type (BSAction)
price_type: Limit, # Order Price Type (PriceType)
price: 8.9, # Order Price (float)
quantity: 2000, # Order Quantity (int)
time_in_force: ROD, # Time in Force (TimeInForce)
order_type: Stock, # Order Type (OrderType)
is_pre_order: false, # Reservation mark (bool)
status: 10, # Order Status (int)
after_price_type: Limit, # Valid Order Price Type (PriceType)
after_price: 8.9, # Valid Order Price (float)
unit: 1000, # Share Unit (int)
after_qty: 2000, # Valid Order Quantity (int)
filled_qty: 0, # Filled Quantity (int)
filled_money: 0, # Filled Value (int)
before_qty: 0, # Before the Quantity Modification (int)
before_price: 8.9, # Before the Price Modification (float)
user_def: None, # Custom Fields (string)
last_time: "09:31:25.174", # Last Modification Time (string)
details: None, # Order Process (list)
error_message: None # Error Message (string)
},
OrderResult{
function_type: None, # Function Type (int)
date: "2023/10/16", # Trading date (string)
seq_no: "00000000005", # Order Serial Number (string)
branch_no: "6460", # Branch Number (string)
account: "26", # Account (string)
order_no: "bA631", # Order Number (string)
asset_type: 0, # Asset Type (int)
market: "TAIEX", # Market Category (string)
market_type: Common, # Trading Session Type (MarketType)
stock_no: "2888", # Symbol (string)
buy_sell: Buy, # Buy / Sell Type (BSAction)
price_type: Limit, # Order Price Type (PriceType)
price: 8.9, # Order Price (float)
quantity: 2000, # Order Quantity (int)
time_in_force: ROD, # Time in Force (TimeInForce)
order_type: Stock, # Order Type (OrderType)
is_pre_order: false, # Reservation mark (bool)
status: 10, # Order Status (int)
after_price_type: Limit, # Valid Order Price Type (PriceType)
after_price: 8.9, # Valid Order Price (float)
unit: 1000, # Share Unit (int)
after_qty: 2000, # Valid Order Quantity (int)
filled_qty: 0, # Filled Quantity (int)
filled_money: 0, # Filled Value (int)
before_qty: 0, # Before the Quantity Modification (int)
before_price: 8.9, # Before the Price Modification (float)
user_def: None, # Custom Fields (string)
last_time: "09:31:25.101", # Last Modification Time (string)
details: None, # Order Process (list)
error_message: None # Error Message (string)
}]
}