Skip to main content

List of Enumerations

Class

Class

OrderObject

ParameterTypeMeaning
buySellBsActionBuy/Sell Type, valid values: Buy, Sell
stockNostringSymbol
pricestringOrder Price
quantityintOrder Quantity
marketTypeFutOptMarketTypeTrading Session, valid values: Future, Option, FutureNight, OptionNight
priceTypeFutOptPriceTypePrice Type, valid values: Limit, Market, RangeMarket, Reference
timeInForceTimeInForceTime In Force, valid values: Rod, Fok, Ioc
orderTypeFutOptOrderTypeOrder Type, valid values: New, Close, Auto, FdayTrade
userDef (optional)stringCustomer field (up to 10 characters; special characters are not supported)

FutOptOrderResult

OrderResult,You can using GetOrderResult(accounts) get data.

ParameterTypeMeaning
functionTypeintFunction Type: 0 New, 10 Execute New, 15 Amend Price, 20 Amend Lot, 30 Cancel, 90 Failed
datestringTransaction Date
seqNostringOrder Serial Number
branchNostringBranch Number
accountstringAccount
orderNostringOrder Number
assetTypeintAsset Type: 1 Future, 2 Option
marketstringMarket Type: TAIMEX Future or Option
marketTypeFutOptMarketTypeTrading Session Type: Future, Option, FutureNight, OptionNight
unitintUnit
currencystringCurrency
symbolstringSymbol
expiryDatestringExpiry Date
strikePricedoubleStrike Price
callPutCallPutCall / Put: Call, Put
buySellBsActionBuy/Sell Type: Buy, Sell
symbolLeg2stringSymbol - second leg of spread order
expiryDateLeg2stringExpiry Date - second leg of spread order
strikePriceLeg2doubleStrike Price - second leg of spread order
callPutLeg2stringCall / Put - second leg of spread order: Call, Put
buySellLeg2BsActionBuy/Sell Type - second leg of spread order: Buy, Sell
priceTypeFutOptPriceTypeOriginal Order Price Type: Limit, Market, RangeMarket, Reference
pricedoubleOrder Price
lotintOriginal Order Lot
timeInForceTimeInforceTime In Force: ROD, FOK, IOC
orderTypeFutOptOrderTypeOrder Type: New, Close, Auto, FdayTrade
isPreOrderboolReservation Order Flag
statusintSee the status table for order status values
afterPriceTypeFutOptPriceTypeEffective Order Price Type: Limit, Market, RangeMarket, Reference
afterPricedoubleEffective Order Price
afterLotintEffective Order Lot
filledLotintFilled Lot
filledMoneydoubleFilled Value
beforeLotintEffective Lot Before Modification
beforePricedoubleEffective Price Before Modification
userDefstringCustom Field
lastTimestringLast Modification Time
errorMessagestringError Message
detaillistOrder Process (returned by OrderResultDetail or OrderHistory)
>> functionTypeintFunction Type: 10 New, 15 Amend Price, 20 Amend Lot, 30 Cancel, 50 Filled, 90 Failed
>> modifiedTimestringModified Time
>> beforeLotintOriginal Order Lot
>> afterLotintEffective Order Lot
>> beforePricedoubleOriginal Order Price
>> afterPricedoubleEffective Order Price
>> filledMoneydoubleFilled Value
>> errorMessagestringError Message

BatchResult

BatchResult,You can using BatchOrderLists(accounts) get data.

ParameterTypeMeaning
functionTypeintFunction Type: 0 New, 10 Execute New, 15 Amend Price, 20 Amend Lot, 30 Cancel, 90 Failed
datestringDate
branchNostringBranch Aumber
accountstringAccount
batchSeqNostringBatch Serial Number

FutOptModifyPrice

Modified Price Object

ParameterTypeMeaning
FutOptOrderResultObjectFutOptOrderResult
pricestringThe price after modification
FutOptPriceTypeFutOptPriceTypeThe price type after modification: Limit, Market, RangeMarket, Reference

FutOptModifyLot

Modified Lot Object

ParameterTypeMeaning
FutOptOrderResultObjectFutOptOrderResult
lotintThe lot after modification

FutOptFilledData

Filled Data Object

ParameterTypeMeaning
datestringFilled Date
branchNostringBranch Number
accountstringAccount
seqNostringOrder serial number (only display on filled callback)
orderNostringOrder Number
symbolstringSymbol
expiryDatestringExpiry Date
strikePricedoubleStrike Price
callPutCallPutCall / Put : CallPut
buySellBsActionBuy/Sell Type : BuySell
symbolLeg2stringSpread Symbol
expiryDateLeg2stringExpiry Date - Spread Order
strikePriceLeg2doubleStrike Price - Spread Order
callPutLeg2CallPutCall / Put : CallPut
buySellLeg2BsActionBuy/Sell Type - Spread Order: BuySell
orderTypeFutOptOrderTypeOrder Type: New, Close, Auto, FdayTrade
filledNostringFilled Serial Number
filledAvgPricedoubleFilled Average Price
filledLotintFilled Share
filledPricedoubleFilled Price
filledTimestringFilled Time
userDefstringCustom Fields (only display on filled callback)

Account

Account Information

ParameterTypeMeaning
namestringCustomer Name
accountstringAccount
branchNostringBranch Number
accountTypestringAccount Type : stockfutopt

Constants ( Corresponding Values for Returned Fields )

BSAction

Buy / Sell Type

NameMeaning
BuyBuy
SellSell

CallPut

Call / Put Type

NameMeaning
CallCall
PutPut

FutOptMarketType

Trading Session Type

NameMeaning
FutureFuture Regular Session
FutureNightFuture After-Hours
OptionOption Regular Session
OptionNightOption After-Hours

FutOptPriceType

Price Type

NameMeaning
LimitLimit
MarketMarket
RangeMarketMarket with Protection Orders
ReferenceReference Price

TimeInForce

Time In Force

NameMeaning
RODRest of Day
FOKFill-or-Kill
IOCImmediate-or-Cancel

FutOptOrderType

Order Type

NameMeaning
NewOpen Position
CloseClose Position
AutoAuto
FdayTradeDayTrade

functionType

Function Type

NameValue
New Order0
Execute New Order10
Amend Price15
Amend Lot20
Cancel Order30
Failed90

market

Market Category

NameValue
Futures ExchangeTAIMEX

status

Order Status

NameValue
Reservation0
Received by the middle office4 (use GetOrderResult to retrieve the latest status)
Processing reported by the exchange8 (often observed for orders not priced at the limit-up or limit-down price; not shown by get_result or get_result_detail)
Back-office connection timeout9 (query again later with GetOrderResult, or contact your broker)
Order or modification succeeded10 (successful price or quantity modifications also return 10; inspect the returned fields to identify the modification)
Cancellation successful30
Partially filled; remainder cancelled40
Fully filled50
Price modification failed19
Quantity modification failed29
Cancellation failed39
Failed90

Futures orders do not use the price/quantity modification success statuses 15 and 20 or the ACK statuses 14, 24, and 34. See Error and Status Code Reference.

Month

Month Code

Future

JanFebMarAprMayJun
ABCDEF
JulAugSepOctNovDec
GHIJKL

Option

Call

JanFebMarAprMayJun
ABCDEF
JulAugSepOctNovDec
GHIJKL

Put

JanFebMarAprMayJun
MNOPQR
JulAugSepOctNovDec
STUVWX