String!
required
The event ID to fetch top markets for
Int!
required
Unix timestamp (seconds) for the start of the range
Int!
required
Unix timestamp (seconds) for the end of the range
PredictionMarketBarsResolution!
required
Resolution for the bars (e.g., min1, min5, hour1, day1)
See PredictionMarketBarsResolution
Int
Number of bars to fetch backwards from ‘to’ (alternative to ‘from’)
Int
Maximum number of markets to return (default 5, max 10)
Boolean
Use pre-computed leaderboard ranking (overrides rankBy options when true)
PredictionMarketRankingAttribute
Market-level attribute to rank by (use this OR rankByOutcome + rankByOutcomeAttribute)
See PredictionMarketRankingAttribute
PredictionOutcomeIndex
Which outcome to rank by (use with rankByOutcomeAttribute)
See PredictionOutcomeIndex
PredictionOutcomeRankingAttribute
Outcome-level attribute to rank by (requires rankByOutcome)
See PredictionOutcomeRankingAttribute
RankingDirection
Direction to rank (DESC = highest first)
See RankingDirection
Boolean
Whether to remove empty bars from the response
[String!]
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.