Skip to main content
Codex provides comprehensive prediction market data coverage across major platforms. Access real-time market prices, outcome probabilities, trading volumes, event data, and trader analytics through a unified GraphQL API.
Prediction Market data is currently in beta. It is actively being worked on and improved, but may be unreliable. Polymarket and Kalshi data are live.At least for the time being, these endpoints require a Growth or Enterprise plan. Learn more.
https://mintcdn.com/codex-dfdf2708/PrZZ9X_vBR9H4bfJ/images/prediction-markets/polymarket.png?fit=max&auto=format&n=PrZZ9X_vBR9H4bfJ&q=85&s=3f6c942225e6b0297bad0530503f6db9

Polymarket

Leading on-chain prediction market platform on Polygon.
https://mintcdn.com/codex-dfdf2708/PrZZ9X_vBR9H4bfJ/images/prediction-markets/kalshi.png?fit=max&auto=format&n=PrZZ9X_vBR9H4bfJ&q=85&s=d578c682b614cb847233e6c8d12c7f41

Kalshi

CFTC-regulated prediction market exchange.

Supported Prediction Market Platforms

Below is the complete list of prediction market platforms supported by Codex. Use the Protocol value to filter filterPredictionEvents and filterPredictionMarkets.
PlatformProtocol FilterStatus
PolymarketPOLYMARKETLive
KalshiKALSHILive

Understanding Events and Markets

Events are collections of related markets. For example:
  • Event: “Champions League Final 2026”
    • Market 1: “Will Team A win?”
    • Market 2: “Will the score be over 2.5 goals?”
    • Market 3: “Will there be a penalty?”
Use filterPredictionEvents to find trending high-level topics. Use filterPredictionMarkets to find trending markets.

Supported APIs

Market & Event API

Trading & Activity API

Market Discovery API

Querying Prediction Markets

Use the filter queries to discover markets and events. Both support optional protocol filtering:
{
  filterPredictionEvents(
    filters: {
      protocol: POLYMARKET
      status: OPEN
    }
    rankings: [{ attribute: trendingScore24h, direction: DESC }]
    limit: 10
  ) {
    count
    results {
      event {
        question
        description
      }
      marketCount
      volumeUsd24h
      trendingScore24h
    }
  }
}

Find top markets by 24h volume

{
  filterPredictionMarkets(
    filters: {
      protocol: POLYMARKET
      status: OPEN
    }
    rankings: [{ attribute: volumeUsd24h, direction: DESC }]
    limit: 10
  ) {
    count
    results {
      id
      eventLabel
      market {
        question
        protocol
      }
      volumeUsd24h
      liquidityUsd
      outcome0 {
        label
        lastPriceUsd
      }
      outcome1 {
        label
        lastPriceUsd
      }
    }
  }
}
See the GraphQL Explorer to try it out.

Recipes

Step-by-step guides for building with prediction market data:

Discover Prediction Markets

Browse categories, trending events, and filter markets.

Prediction Traders

Trader leaderboards, profiles, and performance analytics.

Prediction Charts

Outcome probability charts, multi-market comparisons, and OHLC data.

Prediction Event Dashboard

Build a complete event detail page with real-time data.
Interested in data from a prediction market platform we don’t support yet? Let us know — we’re expanding our coverage regularly.