Enumerations

About 2 min

For the meaning of enumeration parameters and common field parameters, please refer to this section

Language

tigerapi/enums.h Language

NameLanguage
zh_CNSimplified Chinese
zh_TWTraditional Chinese
en_USEnglish

Market

tigerapi/enums.h Market

NameMarket
ALLAll markets
USUS market
HKHong kong market
CNA shares
SGSingapore market
AUAustralia market
NZNew zealand market

Contract Security Type

tigerapi/enums.h SecurityType

NameContract Type
STKStock
OPTOption
WARHong Kong stock warrant
IOPTHK Stock CBBCs
CASHCash
FUTFutures
FOPFutures Option

Account Segment Type

tigerapi/enums.h SegmentType

NameContract Type
SECSecurity
FUTFutures

Currency

tigerapi/enums.h Currency

NameCurrency
ALLALL
USDU.S Dollar
HKDHongkong Dollar
CNHChinese Yuan
SGDSingapore Dollar
AUDAustralia Dollar
JPYJapanese Yuan
EUREuro
GBPPound Sterling
CADCanada Dollar
NZDNew Zealand Dollar

Order Status

tigerapi/enums.h OrderStatus
SDK use tigeropen.common.util.order_utils.get_order_status to process state values into enumeration identifiers。

NameStateState CodeDescription
EXPIREDInvalid-2Invalid status
NEWInitial-1Initial status
CANCELLEDCancelled4Cancel status
HELDSubmitted5Order submitted
PARTIALLY_FILLEDPartiallyFilled2, 5, 8Order partial filled
FILLEDFilled6Order filled
REJECTEDInactive7Order Inactive

Note: The status of partial transaction is special, may be HELD, CANCELLED, EXPIRED, REJECTED any kind of status, please see FAQ - transaction - how to determine the order is part of the status of the transaction See also the method of order status in sdk tigeropen.trade.domain.order.Order.status, that is, if the order status returned by the server is HELD(submitted). and there is a partial number of transactions, then the order status is PARTIALLY_FILLED

Account Status

StatusDescription
NewNew Account
FundedFunded
OpenOpen
PendingPending Confirm
AbandonedAbandoned
RejectedAccount Rejected
ClosedAccount Rejected
UnknownUnknown Status

Order Type

TypeDescription
MKTMarket Order
LMTLimit Order
STPStop Order
STP_LMTStop Limit Order
TRAILTrailing Stop Order
AMAuction Market Order(HK)
ALAuction Limit Order(HK)

Additional Order Types

TypeDescription
PROFITAdditional Take Profit Order
LOSSAdditional Stop Loss Order
BRACKETSAdditional Bracket Order

Account Type

TypeDescription
CASHCash Account
RegTMarginReg T Margin Account
PMGRNPortfolio Margin Account

Subscribe Type

SubjectDescription
OrderStatusOrder Data
AssetAsset
PositionPosition
QuoteQuote Data
OptionOption Data
FutureFutures Data
QuoteDepthQuote Depth Data

Bar Type

tigerapi/enums.h BarPeriod

TypeValueDescription
DAYdayDay Bar
WEEKweekWeek Bar
MONTHmonthMonth Bar
YEARyearYear Bar
ONE_MINUTE1min1 minute Bar
THREE_MINUTES3min3 minute Bar
FIVE_MINUTES5min5 minute Bar
TEN_MINUTES10min10 minute Bar
FIFTEEN_MINUTES15min15 minute Bar
HALF_HOUR30min30 minute Bar
FORTY_FIVE_MINUTES45min45 minute Bar
ONE_HOUR60min60 minute Bar
TWO_HOURS2hour2 hour Bar
THREE_HOURS3hour3 hour Bar
FOUR_HOURS4hour4 hour Bar
SIX_HOURS6hour6 hour Bar
Last update: