Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.codex.io/llms.txt

Use this file to discover all available pages before exploring further.

type
PredictionMarketSegmentType!
Which dimension dominates: STAT (a stat is present, regardless of period), PERIOD (only a period is present), or NONE (neither — full-match market). See PredictionMarketSegmentType
period
String
Period token if detected: e.g. “set_1”, “1h”, “game_2”, “map_3”, “period_2”, “ot”. Snake_case slug. Null when the market covers the full match.
stat
PredictionMarketStatType
Stat dimension if a stat keyword was detected (points, rebounds, assists, …). Null otherwise. See PredictionMarketStatType
groupingKey
String!
Convenience grouping key. Equals stat ?? period ?? "match". Use this when partitioning markets within an event into sub-event groups: stat takes precedence over period (a “1H Player Points” market groups with other points markets, not other 1H markets).
numberValue
Float
Numeric segment value when the period/stat slug carries an ordinal or numeric component (for example set/game/map/round number). Null when no numeric segment value is available.

Used By

Returned by
  • eventScopedFilterPredictionMarkets: Filters prediction markets within a single event and returns structured classification metadata for each market. Use this instead of filterPredictionMarkets when you need entrant/segment/ladder details (country codes, period+stat grouping, parsed numeric/date rungs) without re-parsing labels client-side.
  • filterPredictionMarkets: Filters prediction markets using optional text, IDs, event constraints, and ranking criteria.