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
lotintOrder 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
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 、Option
marketTypeFutOptMarketTypeTrading Session Type : FutureOptionFutureNightOptionNight
symbolstringSymbol
buySellBsActionBuy/Sell Type : BuySell
priceTypeFutOptPriceTypeOriginal OPrder Price Type : LimitMarketRangeMarket Market with Protection Orders 、 Reference
pricedoubleOrder Price
lotintOriginal Order Lot
timeInForceTimeInForceTime In Force : RodFokIoc
orderTypeFutOptOrderTypeOrder Type : NewCloseAuto
isPreOrderboolReservation Order Flag
statusintOrder 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
afterPricedoubleValid Order Price
unitintTrading Unit
afterLotintValid Order Lot
filledLotintFilled Lot
filledMoneydoubleFilled Value
beforeLotintBefore the Lot Modification
beforePricedoubleBefore the Price Modification
userDefstringCustom Fields
lastTimestringLast Modification Time
errorMessagestringError Message
detailslistOrder Process (Return value when query OrderResultDetail or OrderHistory )
>> functionTypeintFunction Type : 10 Execute New、 15 Amend Price 、 20 Amend Lot 、 30 Cancel 、50 Fully Filled、90 Failed
>> modifiedTimestringOrder Modified Time
>> beforeLotintOriginal Order Lot
>> afterLotintValid Order Lot
>> beforePricedoubleOriginal Order Price
>> afterPricedoubleValid Order Price
>> filledMoneydoubleFilled 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
datestringDate
branchNostringBranch Aumber
accountstringAccount
batchSeqNostringBatch Serial Number

FutOptModifyPrice

Modified Price Object

ParameterTypeMeaning
FutOptOrderResultObjectFutOptOrderResult
pricedoubleThe price after modification
PriceTypeFutOptPriceTypeThe price type after modification : LimitMarketRangeMarket Market with Protection Orders 、 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
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
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