Enum Definitions

Predefined value sets used by API parameters and response fields. Blue enum types across the API Reference link to the sections below.

Market

Market

Standard market codes for market / context.market. Input aliases normalize to the standard code; responses always emit the standard value (never ks_equity).

ValueDescription
us_equityUnited States. Input alias examples: US, NASDAQ, NYSE.
hk_equityHong Kong. Input alias examples: HK, HKEX.
kr_equityKorea. Input alias examples: KR, KS, KQ, KOSPI, KOSDAQ.
uk_equityUnited Kingdom. Input alias examples: UK, GB, LSE.
jp_equityJapan. Input alias examples: JP, TSE.
cryptoCrypto. Input alias examples: spot, perp, token, protocol (query context; not market aliases).

Market type

MarketType

Instrument market type for market-data endpoints. Defaults to spot when omitted.

ValueDescription
spotSpot market.
perpPerpetual futures market.
futuresDated futures market.

K-line timeframe

Timeframe

Bar size for /v1/markets/kline.

ValueDescription
1m1-minute bars.
5m5-minute bars. Equity live also accepts 5m.
15m15-minute bars.
1h1-hour bars.
4h4-hour bars.
1dDaily bars.
1wWeekly bars; may return no_data when coverage is thin.

History timeframe

HistoryTimeframe

Aggregation window for recent trades and liquidity history endpoints.

ValueDescription
5m5-minute window.
1h1-hour window.
1dDaily window.

Snapshot type

SnapshotType

Aggregation mode for GET /v1/markets/snapshot venue coverage.

ValueDescription
multi_venueCrypto multi-exchange aggregate; venue_quotes has 2+ rows.
single_venueSingle listing scope (typical for equity live).

Market session

MarketSession

Equity session phase from live overlay.

ValueDescription
pre_marketPre-market session.
regularRegular trading hours (RTH).
post_marketAfter-hours / post-market.
closedMarket closed.
unknownSession unknown.

Earnings date precision

EarningsDatePrecision

Precision of report_date in earnings calendar events.

ValueDescription
dayThe report date is precise to a calendar day.

Earnings report time type

EarningsReportTimeType

Market session in which an earnings report is expected or was released.

ValueDescription
pre_marketBefore the regular market session.
during_marketDuring the regular market session.
post_marketAfter the regular market session.
unknownA reliable release session is unavailable.

Earnings period type

EarningsPeriodType

Financial reporting period represented by a calendar or consensus record.

ValueDescription
quarterlyQuarterly reporting period.
annualAnnual reporting period.
ttmTrailing twelve months.

Data status

DataStatus

Response readiness status. Endpoints emit the subset they support; raw upstream statuses are never exposed directly.

ValueDescription
okData is complete and current.
readyFull ready (GA live surfaces).
partialSome fields are missing; see metadata.missing_fields / limitations.
no_dataObject resolved but this domain has no data; empty_reason explains why.
staleServing snapshot is older than the freshness target (RTH may also add quote_source_latency_high).
not_readyEndpoint responds 200 but the payload is not populated yet.
upstream_errorUpstream source failed; retry later.

Resolution status

ResolutionStatus

Object resolver outcome. not_applicable marks events that need no asset binding and is not a failure.

ValueDescription
resolvedInput resolved to a single object.
candidateMultiple candidates returned for the caller to pick.
ambiguousAmbiguous input; no silent binding is performed.
no_matchNo object matched the input.
not_applicableQuery does not require asset binding (e.g. macro events).

Gate mapping status

GateMappingStatus

Gate symbol ↔ underlying listing mapping status for covered listings.

ValueDescription
mappedGate symbol is mapped to an underlying listing.
unknownMapping is not established yet.
conflictConflicting mapping evidence; manual review required.

Object ref type

ObjectRefType

Object type carried by metadata.object_refs[] entries.

ValueDescription
assetInvestable or analyzable asset (e.g. BTC, AAPL common equity).
listingInstrument listed on a venue (quotes / books / trades live here).
instrumentTradable contract derived from an asset (spot, perp, ADR, …).
venueExchange or trading platform (e.g. XNAS, Gate).
eventEvent object (news / signal / prediction event).
marketPrediction market object.

Prediction venue

PredictionVenue

Supported prediction-market venues.

ValueDescription
polymarketPolymarket (live order book supported).
predict_funPredict.fun

Ranking type

RankingType

Ranking dimension for /v1/prediction/rankings.

ValueDescription
volume_24hRank by 24h traded volume.
liquidityRank by current liquidity.

Order book side

OrderBookSide

Outcome side for prediction order-book queries.

ValueDescription
yesYES outcome book only.
noNO outcome book only.
bothBoth outcome books.

Trade side

TradeSide

Aggressor side on listing-level recent trades. Use unknown when the venue does not provide a reliable direction — never invent buy/sell.

ValueDescription
buyBuyer was the aggressor (taker).
sellSeller was the aggressor (taker).
unknownDirection unavailable or inconsistent; do not infer.