Enum Parameters

The enums below are taken from src/model/enums.rs in tigeropen 0.5.8. "Value" is what is serialised into request and response JSON (the serde rename); "Variant" is the Rust enum member name.

Market

tigeropen::model::enums::Market

ValueVariantDescription
ALLAllAll markets
USUsUS
HKHkHong Kong
CNCnMainland China
SGSgSingapore

Security Type

tigeropen::model::enums::SecurityType

ValueVariantDescription
ALLAllAll types
STKStkStock
OPTOptOption
WARWarWarrant
IOPTIoptCallable bull/bear contract
FUTFutFuture
FOPFopFuture option
CASHCashForex
MLEGMlegMulti-leg combo
FUNDFundFund

Currency

tigeropen::model::enums::Currency

ValueVariantDescription
ALLAllAll currencies
USDUsdUS dollar
HKDHkdHong Kong dollar
CNHCnhOffshore renminbi
SGDSgdSingapore dollar

Order Type

tigeropen::model::enums::OrderType

ValueVariantDescription
MKTMktMarket
LMTLmtLimit
STPStpStop
STP_LMTStpLmtStop limit
TRAILTrailTrailing stop
AMAmAuction market
ALAlAuction limit
TWAPTwapTime-weighted average price
VWAPVwapVolume-weighted average price
OCAOcaOne-cancels-all

Order Status

tigeropen::model::enums::OrderStatus

ValueVariantServer codeDescription
InvalidInvalid-2Invalid
InitialInitial-1Initial
PendingCancelPendingCancel3Pending cancel
CancelledCancelled4Cancelled
SubmittedSubmitted5Submitted
FilledFilled6Filled
InactiveInactive7Inactive
PendingSubmitPendingSubmit8Pending submit

The numeric code is available through OrderStatus::code().

Bar Period

tigeropen::model::enums::BarPeriod

ValueVariantDescription
dayDayDaily
weekWeekWeekly
monthMonthMonthly
yearYearYearly
1minMin11 minute
5minMin55 minutes
15minMin1515 minutes
30minMin3030 minutes
60minMin6060 minutes

Language

tigeropen::model::enums::Language

ValueVariantDescription
zh_CNZhCnSimplified Chinese
zh_TWZhTwTraditional Chinese
en_USEnUsEnglish

Adjustment Type

tigeropen::model::enums::QuoteRight

ValueVariantDescription
brBrBack-adjusted
nrNrUnadjusted

License

tigeropen::model::enums::License

ValueVariantDescription
TBNZTbnzNew Zealand
TBSGTbsgSingapore
TBHKTbhkHong Kong
TBAUTbauAustralia
TBUSTbusUnited States
TBMSTbmsMalaysia

Order Sort Field

tigeropen::model::enums::OrderSortBy

ValueVariantDescription
LATEST_CREATEDLatestCreatedBy creation time
LATEST_STATUS_UPDATEDLatestStatusUpdatedBy status update time

Account Segment Type

tigeropen::model::enums::SegmentType

ValueVariantDescription
ALLAllAll segments
SECSecSecurities
FUTFutFutures
FUNDFundFund

Corporate Action Type

tigeropen::model::enums::CorporateActionType

ValueVariantDescription
splitSplitSplit
dividendDividendDividend
earningEarningEarnings calendar
symbol_changeSymbolChangeSymbol change
delistingDelistingDelisting
ipoIpoIPO

Industry Level

tigeropen::model::enums::IndustryLevel

ValueVariantDescription
GSECTORGSectorLevel 1
GGROUPGGroupLevel 2
GINDGIndLevel 3
GSUBINDGSubIndLevel 4

Sort Direction

tigeropen::model::enums::SortDirection

ValueVariantDescription
SortDir_NoNoNo sorting
SortDir_AscendAscendAscending
SortDir_DescendDescendDescending

Option Analysis Period

tigeropen::model::enums::OptionAnalysisPeriod

ValueVariantDescription
3yearThreeYearLast 3 years
52weekFiftyTwoWeekLast 52 weeks
26weekTwentySixWeekLast 26 weeks
13weekThirteenWeekLast 13 weeks

Financial Report Period

tigeropen::model::enums::FinancialReportPeriod

ValueVariantDescription
AnnualAnnualAnnual
QuarterlyQuarterlyQuarterly
LTMLtmLast twelve months

Time in Force

tigeropen::model::enums::TimeInForce

ValueVariantDescription
DAYDayValid for the day
GTCGtcGood till cancelled
OPGOpgAt the open

Did this page help you?