Skip to main content

Get Order Results (Include Detail)

get_order_results_detail

Input Parameters

ParameterTypeDescription
accountAccountAccount

Result Response

ParameterTypeDescription
is_successboolWhether successful
dataListReturned order results with history
messagestringError message when is_success = False

OrderResult Fields

Return type: Object

ParameterTypeDescription
function_typeint (Optional)Function type: 0 New, 10 Execute New, 15 Modify Price, 20 Modify Qty, 30 Cancel, 90 Failed
datestringTrade date
seq_nostringOrder sequence number
branc_nostringBranch code
accountstringAccount
orde_nostringOrder number
asse_typeintAsset type: 0 Stock
marketstringMarket type: TAIEX Main Board, TAISDAQ OTC, TAIEMG Emerging
marke_typeMarketTypeMarket category: COMMON, FIXING, INTRADAY_ODD, ODD, EMG, EMG_ODD
stock_nostringStock code
buy_sellBSActionBuy/Sell: BUY Buy, SELL Sell
price_typePriceTypeEffective price type: LIMIT, LIMIT_UP, LIMIT_DOWN, MARKET, REFERENCE
pricedoublePrice
quantityintOriginal order quantity
time_in_forceTimeInForceTime condition: ROD, FOK, IOC
order_typeOrderTypeOrder type: STOCK, MARGIN, SHORT, DAY_TRADE, SBL
is_pre_orderboolWhether pre-order
statusintOrder status: 0 Pre-order, 4 Sent to backend, 9 Timeout, 10 Success, 30 Unfilled cancel success, 40 Partial fill with remainder cancelled, 50 Fully filled, 90 Failed
after_price_typePriceTypeEffective price type: LIMIT, LIMIT_UP, LIMIT_DOWN, MARKET, REFERENCE
after_pricedoubleEffective order price
unitintUnit count
after_qtyintEffective order quantity, including filled quantity
filled_qtyintFilled quantity
filled_moneyintFilled amount
before_qtyintEffective quantity before modification
before_pricedoubleEffective price before modification
user_defstringCustom field
last_timestringLast update time
error_messagestringError message
detailslistOrder history details
>> function_typeintFunction type: 0 New, 10 Execute New, 15 Modify Price, 20 Modify Qty, 30 Cancel, 50 Fully Filled, 90 Failed
>> modified_timestringModified time
>> before_qtyintOriginal order quantity
>> after_qtyintEffective order quantity, including filled quantity
>> before_pricedoubleOriginal order price
>> after_pricedoubleEffective order price
>> filled_moneydoubleFilled amount
>> statusintOrder status
>> err_msgstringError message

Request Example

auto order_results_response = sdk->stock->get_order_results_detail(target_account);

Response Example

{
isSuccess = true,
message = ,
data = [OrderResult{...}]
}