Skip to main content

List of Enumerations

Class

Class

OrderObject

ParameterTypeMeaning
buySellBSActionBuy/Sell Type valid in BuySell
symbolstringSymbol
buySell2 (optional)BSActionSpread Order Buy/Sell Type
symbol2 (optional)stringSpread Order Symbol
pricestringOrder Price
lotnumberOrder Lot
marketTypeFutOptMarketTypeTrading Session valid in FutureOptionFutureNightOptionNight
priceTypeFutOptPriceTypePrice Type valid in LimitMarketRangeMarket Market with Protection Orders 、 Reference
timeInForceTimeInForceTime In Force valid in RODFOKIOC
orderTypeFutOptOrderTypeOrder Type valid in NewCloseAutoFdayTrade
userDef (optional)stringCustomer Field (Up to 10 characters, no special characters supported)

FutOptOrderResult

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

ParameterTypeMeaning
functionTypenumberFunction 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
assetTypenumberAsset Type : 1 Future、 2 Option
marketstringMarket Type : TAIMEX Future 、Option
marketTypeFutOptMarketTypeTrading Session Type : FutureOptionFutureNightOptionNight
symbolstringSymbol
buySellBSActionBuy/Sell Type : BuySell
priceTypeFutOptPriceTypeOriginal OPrder Price Type : LimitMarketRangeMarket Market with Protection Orders 、 Reference
pricenumberOrder Price
lotnumberOriginal Order Lot
timeInForceTimeInForceTime In Force : RODFOKIOC
orderTypeFutOptOrderTypeOrder Type : NewCloseAuto
isPreOrderboolReservation Order Flag
statusnumberOrder Status : 0 Reservation 、 4 InQueue、 9 TimeOut 、 10 New Order 、 30 Cancel Order 、 50 Fully Filled 、 90 Order Failed
afterPriceTypeFutOptPriceTypeValid Order Price Type :LimitMarketRangeMarket Market with Protection Orders 、 Reference
afterPricenumberValid Order Price
unitnumberTrading Unit
afterLotnumberValid Order Lot
filledLotnumberFilled Lot
filledMoneynumberFilled Value
beforeLotnumberBefore the Lot Modification
beforePricenumberBefore the Price Modification
userDefstringCustom Fields
lastTimestringLast Modification Time
errorMessagestringError Message
detailslistOrder Process (Return value when query orderResultDetail or orderHistory )
>> functionTypenumberFunction Type : 10 Execute New、 15 Amend Price 、 20 Amend Lot 、 30 Cancel 、50 Fully Filled、90 Failed
>> modifiedTimestringOrder Modified Time
>> beforeLotnumberOriginal Order Lot
>> afterLotnumberValid Order Lot
>> beforePricenumberOriginal Order Price
>> afterPricenumberValid Order Price
>> filledMoneynumberFilled Value
>> errorMessagestringError Message

BatchResult

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

ParameterTypeMeaning
functionTypenumberFunction Type : 0 New 、 15 Amend Price 、 20 Amend Lot 、 30 Cancel 、90 Failed
datestringDate
branchNostringBranch Aumber
accountstringAccount
batchSeqNostringBatch Serial Number

FutOptModifyPrice

Modified Price Object

ParameterTypeMeaning
FutOptOrderResultObjectFutOptOrderResult
pricenumberThe price after modification
PriceTypeFutOptPriceTypeThe price type after modification : LimitMarketRangeMarket Market with Protection Orders 、 Reference

FutOptModifyLot

Modified Lot Object

ParameterTypeMeaning
FutOptOrderResultObjectFutOptOrderResult
lotnumberThe 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
strikePricenumberStrike Price
callPutCallPutCall / Put : CallPut
buySellBSActionBuy/Sell Type : BuySell
symbolLeg2stringSpread Symbol
expiryDateLeg2stringExpiry Date - Spread Order
strikePriceLeg2numberStrike Price - Spread Order
callPutLeg2CallPutCall / Put : CallPut
buySellLeg2BSActionBuy/Sell Type - Spread Order: BuySell
filledNostringFilled Serial Number
filledAvgPricenumberFilled Average Price
filledLotnumberFilled Share
filledPricenumberFilled 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
OptionOption Regular Session
FutureNightFuture After-Hours
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
NewCommon Stock
CloseMargin
AutoShort sale
FdayTradeDayTrade

functionType

Function Type

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

market

Market Category

NameValue
Future、OptionTAIMEX

status

Order Status

NameValue
Reservation0
InQueue4 (Using GetOrderResult retrieve the latest status)
TimeOut9 (Please wait a moment and use GetOrderResult retrieve the latest status ; or connect your agency)
New Order10
Cancel30
Fully filled50
Modified Price Failed19
Modified Quantity Failed29
Cancel Order Failed39
Failed90

Month

Month Code

Future

JanFebMarAprMayJun
ABCDEF
JulAugSepOctNovDec
GHIJKL

Option

Call

JanFebMarAprMayJun
ABCDEF
JulAugSepOctNovDec
GHIJKL

Put

JanFebMarAprMayJun
MNOPQR
JulAugSepOctNovDec
STUVWX