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 event ID to fetch top markets for
Unix timestamp (seconds) for the start of the range
Unix timestamp (seconds) for the end of the range
Resolution for the bars (e.g., min1, min5, hour1, day1)
See PredictionMarketBarsResolution
Number of bars to fetch backwards from ‘to’ (alternative to ‘from’)
Maximum number of markets to return (default 5, max 10)
Use pre-computed leaderboard ranking (overrides rankBy options when true)
Market-level attribute to rank by (use this OR rankByOutcome + rankByOutcomeAttribute)
See PredictionMarketRankingAttribute
Which outcome to rank by (use with rankByOutcomeAttribute)
See PredictionOutcomeIndex
Outcome-level attribute to rank by (requires rankByOutcome)
See PredictionOutcomeRankingAttribute
Direction to rank (DESC = highest first)
See RankingDirection
Whether to remove empty bars from the response
Explicit list of market IDs to fetch (overrides ranking if provided)
Used By
Used as input by- predictionEventTopMarketsBars: Returns bar data for top markets inside a prediction event.