Skip to main content

Market Data API Enumerations

This page explains the enumerated values used by Market Data API fields, organized by field name. When a field has different value sets on different endpoints, each set is listed separately.

  • Enum values are case-sensitive. Send them exactly as written in the Value column.

agg_type​

Aggregation dimension used to rank sectors in the market sectors list. Use it with direction.

ValueMeaning
MARKET_VALUERank sectors by market value.
VOLUMERank sectors by trading volume accumulated over the selected period.

alert_type​

Unusual activity alert type, used by the unusual activities endpoint.

ValueMeaning
MAJOR_BUYMajor buy. A single buy trade's value exceeds the average per-minute traded value of the last 60 minutes. Requires trading in every minute of the last 60 minutes and at least 800 trades.
MAJOR_SELLMajor sell. A single sell trade's value exceeds the average per-minute traded value of the last 60 minutes. Requires trading in every minute of the last 60 minutes and at least 800 trades.
SINGLE_TRADE_SPIKE_UPSingle-trade spike up. A buy trade is priced more than 2% above the previous trade. Requires trading in each of the last 3 minutes.
SINGLE_TRADE_SPIKE_DOWNSingle-trade spike down. A sell trade is priced more than 2% below the previous trade. Requires trading in each of the last 3 minutes.
VOLUME_SURGE_RALLYVolume surge with price rise. Over the last 3 minutes, volume in each minute is at least 3 times the 15-minute average, the 3-minute average volume is at least 6 times the 15-minute average, and the price rises. Requires trading in each of the last 15 minutes.
VOLUME_SURGE_DECLINEVolume surge with price decline. Same volume conditions as VOLUME_SURGE_RALLY, and the price falls over the 3 minutes.
VOLUME_SURGE_FLATVolume surge with flat price. Same volume conditions as VOLUME_SURGE_RALLY, and the price is unchanged over the 3 minutes.
LOW_LEVEL_REBOUNDRebound from a low. The price had fallen 1.5% or more before the last 5 minutes, then rises 0.8% or more in the last minute and 1.5% or more over the last 5 minutes.
HIGH_LEVEL_PULLBACKPullback from a high. The price had risen 1.5% or more before the last 5 minutes, then falls 0.8% or more in the last minute and 1.5% or more over the last 5 minutes.
GAP_UP_BREAKOUTBreakout. The price rises 2% or more within the last 5 minutes after trading within a 1.2% range over the previous 10 minutes.
PLATFORM_DIVESharp dive. The price falls 2% or more within the last 5 minutes after trading within a 1.2% range over the previous 10 minutes.
ACCELERATED_RALLYAccelerated rally. The price rises 0.8% or more in the last minute and 1.5% or more over the last 5 minutes. Unlike LOW_LEVEL_REBOUND, no prior decline is required.
ACCELERATED_DECLINEAccelerated decline. The price falls 0.8% or more in the last minute and 1.5% or more over the last 5 minutes. Unlike HIGH_LEVEL_PULLBACK, no prior rise is required.
GAIN_EXCEEDS_7_PCTGain of 7% or more. The latest change ratio is +7% or higher.
LOSS_EXCEEDS_7_PCTLoss of 7% or more. The latest change ratio is -7% or lower.

category​

ValueMeaning
US_STOCKUS stocks
US_ETFUS ETFs
HK_STOCKHong Kong stocks
US_OPTIONUS options
US_FUTURESUS futures
US_CRYPTOCryptocurrencies
US_EVENTUS event contracts

direction​

ValueMeaning
ASCAscending order
DESCDescending order

div_type​

ValueMeaning
CASH_DIVIDENDCash dividend
STOCK_DIVIDENDStock dividend. The company distributes additional shares; shareholders have no choice of form.
SCRIP_DIVIDENDScrip dividend. Shareholders may choose to receive cash or an equivalent value in shares.
RETURN_OF_CAPITALReturn of capital
INTEREST_PRINCIPAL_PAYMENTInterest and principal payment
DIVIDEND_REINVESTMENTDividend reinvestment
TRUST_INCOME_DISTRIBUTIONTrust income distribution

frequency​

Release frequency of economic calendar events, returned by the economic calendar endpoint.

ValueMeaning
WeeklyReleased weekly
MonthlyReleased monthly
QuarterlyReleased quarterly
AnnualReleased annually
WeekdayReleased irregularly

grade​

Fear & greed sentiment grade, derived from fear_greed_index (0–100).

ValueMeaning
EXTREME_FEARExtreme fear. fear_greed_index ≤ 20.
FEARFear. 21 ≤ fear_greed_index ≤ 40.
NEUTRALNeutral. 41 ≤ fear_greed_index ≤ 60.
GREEDGreed. 61 ≤ fear_greed_index ≤ 80.
EXTREME_GREEDExtreme greed. fear_greed_index ≥ 81.

imbalance_action_type​

Net Order Imbalance Indicator (NOII) data from Nasdaq. Supported for US_STOCK only.

ValueMeaning
PRE_OPENOrder imbalance before the opening cross
PRE_CLOSEOrder imbalance before the closing cross

imbalance_side​

Direction of the order imbalance, returned by the NOII snapshot endpoint. Values are passed through from Nasdaq NOII data.

ValueMeaning
0Not set
1No imbalance
2Buy imbalance (excess buy interest)
3Sell imbalance (excess sell interest)
4Insufficient orders to calculate

imbalance_var_indicator​

Size of the deviation between the near indicative clearing price and the current reference price, returned by the NOII snapshot endpoint. Values are passed through from Nasdaq NOII data.

This field shows magnitude only, not direction. Values are not ordered by magnitude: 10 is the smallest deviation (less than 1%), and 11–13 are the largest.

ValueMeaning
0Not set
11% to 1.99%
22% to 2.99%
33% to 3.99%
44% to 4.99%
55% to 5.99%
66% to 6.99%
77% to 7.99%
88% to 8.99%
99% to 9.99%
10Less than 1%
1110% to 19.99%
1220% to 29.99%
1330% or greater

period​

Statistics period for market sectors.

ValueMeaning
D1Last 1 day
D5Last 5 days
MO1Last 1 month
MO3Last 3 months

position​

Institutional holding change type.

ValueMeaning
OPENNew position opened
CLOSEPosition fully closed
CHANGEExisting position changed (increased or decreased), neither newly opened nor fully closed

rank_type​

Most active stocks​

ValueMeaning
VOLUMERank by volume
RELATIVE_VOLUME_10DRank by 10-day relative volume
TURNOVERRank by turnover (traded value)
TURNOVER_RATERank by turnover rate
AMPLITUDERank by amplitude

52-week high/low​

ValueMeaning
NEW_HIGHNew 52-week high
NEAR_HIGHNear the 52-week high
NEW_LOWNew 52-week low
NEAR_LOWNear the 52-week low

Top gainers & losers​

ValueMeaning
PRE_MARKETPre-market change
AFTER_MARKETAfter-hours change
MIN_3Last 3 minutes
MIN_5Last 5 minutes
DAY_1Last 1 day
DAY_5Last 5 days
MONTH_1Last 1 month
MONTH_3Last 3 months
WEEK_52Last 52 weeks

Top gainers & losers (Broker Market Data API)​

ValueMeaning
PRE_MARKETPre-market change
AFTER_MARKETAfter-hours change
M3Last 3 minutes
M5Last 5 minutes
D1Last 1 day
D5Last 5 days
MO1Last 1 month
MO3Last 3 months
W52Last 52 weeks

region​

Region of economic calendar events, used by the economic calendar endpoint.

ValueMeaning
USUnited States
CNChina
EUEuropean Union
JPJapan
GBUnited Kingdom

sentiment​

News sentiment.

ValueMeaning
POSITIVEPositive
NEGATIVENegative
NEUTRALNeutral

side​

Insider transactions​

ValueMeaning
BUYInsider purchase
SELLInsider sale

Trade direction (stock, futures, and option ticks)​

ValueMeaning
BBuy, traded at the best ask (buyer took the seller's quote)
SSell, traded at the best bid (seller took the buyer's quote)
GBuy, traded above the best ask
LSell, traded below the best bid
NNeutral. The aggressor side cannot be determined, for example a trade between the bid and ask or in an auction.
NBBuy-initiated. The buyer took the seller's quote (at or above the best ask).
NSSell-initiated. The seller took the buyer's quote (at or below the best bid).

B, S, G, L, and N classify a trade by its price relative to the best bid and ask. NB and NS classify a trade by which side initiated it. These are two different classifications, and not every endpoint returns NB or NS.

Taker side (event contract ticks)​

Values in this set are lowercase.

ValueMeaning
yesThe taker bought the YES side
noThe taker bought the NO side

sort_by​

ValueMeaning
CHANGE_RATIOChange ratio
RELATIVE_VOLUME_10D10-day relative volume
MARKET_VALUEMarket value
CLOSEClose price
PRICELatest price
PE_TTMP/E ratio (TTM)
HIGHHigh price
LOWLow price
AMPLITUDEAmplitude
TURNOVERTurnover (traded value)
VOLUMEVolume
YIELDDividend yield (high dividend ranking only)
DIVIDENDDividend per share (high dividend ranking only)

split_type​

ValueMeaning
SPLITSplit: share count increases, unit price decreases
MERGEMerge: share count decreases, unit price increases

status​

Event contract events​

ValueMeaning
ACTIVEActive; the event is in progress
INACTIVEInactive; the event has ended

Event contract markets​

ValueMeaning
ACTIVEOpen for trading
CLOSEDClosed for trading
FINALIZEDThe result is finalized

Event contract milestones​

This field may be empty.

ValueMeaning
NOT_STARTEDNot started
INPROGRESSIn progress
CLOSEDEnded
CANCELLEDCancelled
POSTPONEDPostponed
DELAYEDDelayed
SUSPENDEDSuspended
UNKNOWNUnknown

sub_types​

Streaming subscription data types.

ValueMeaning
QUOTEReal-time quote
SNAPSHOTMarket snapshot
TICKTick-by-tick trades

subtype​

Security subtype.

ValueMeaning
COMMON_STOCKCommon stock
ETFExchange-traded fund
INDEXIndex
PREFERRED_STOCKPreferred stock
WARRANTWarrant. A longer-dated instrument that can be traded separately.
UNITSUnits (trust or partnership units)
RIGHTRight. A short-dated right offered to existing shareholders to buy new shares, usually at a discount.

timespan​

Bars​

ValueMeaning
M11-minute bars
M55-minute bars
M1515-minute bars
M3030-minute bars
M6060-minute bars
M120120-minute bars
M240240-minute bars
DDaily bars
WWeekly bars
MMonthly bars
YYearly bars

Footprint​

ValueMeaning
S55-second footprint
S1515-second footprint
M11-minute footprint
M55-minute footprint
M3030-minute footprint

trading_sessions​

All times are US Eastern Time (ET). A boundary time belongs to the session that starts at it; for example, 09:30 belongs to RTH.

Footprint endpoints (stocks and futures) do not support OVN.

ValueMeaning
PREPre-market, 04:00–09:30
RTHRegular trading hours, 09:30–16:00
ATHAfter-hours, 16:00–20:00
OVNOvernight, 20:00 to 04:00 the next day