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.
The unique identifier.
The prediction protocol.
See PredictionProtocol
The venue-specific market ID.
The venue-specific market slug.
The ID of the prediction event.
The venue-specific event ID.
The question or title.
The display label.
A clean, UI-ready label derived from
label/question with the parent event name stripped (and Kalshi Yes:/No: prefixes unwrapped). Falls back to question when label is missing or unknown.The parent event label.
Primary rules text.
Secondary rules text.
Venue-specific outcome IDs.
Internal outcome IDs.
Labels for each outcome.
The resolution details.
See PredictionResolution
URL of the large image.
URL of the thumbnail image.
URL of the small image.
The creation timestamp.
The last update timestamp.
The timestamp when this entity opens.
The timestamp when this entity closes.
The expected resolution timestamp.
The actual resolution timestamp.
The last observation timestamp.
The network ID.
The exchange contract address.
Categories associated with this entity.
See PredictionCategory
The ID of the winning outcome.
Per-domain structured enrichment (sports market type/teams/start times today). Null when no domain-specific signal extracted.
See PredictionMarketEnrichedMetadata
Used By
Returned by- detailedPredictionEventStats: Returns windowed and all-time stats for a prediction event.
- detailedPredictionMarketStats: Returns windowed and all-time stats for a prediction market.
- eventScopedFilterPredictionMarkets: Filters prediction markets within a single event and returns structured classification metadata for each market. Use this instead of
filterPredictionMarketswhen 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.
- filterPredictionTraderMarkets: Filters trader-market records using trader, market, event, and ranking criteria.
- onPredictionTradesCreated: Streams new prediction trades as they are ingested.
- predictionEventBars: Returns bar data for a prediction event.
- predictionEventTopMarketsBars: Returns bar data for top markets inside a prediction event.
- predictionMarketBars: Returns OHLC-style bar data for a prediction market.
- predictionMarkets: Returns prediction markets by ID.
- predictionTraderHoldings: Returns all prediction token holdings for a specific trader.
- predictionTraderMarketsStats: Returns per-market performance stats for a specific trader.
- predictionTrades: Returns prediction trades with cursor-based pagination.