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 data is live, and Kalshi data will be added soon.At least for the time being, these endpoints require a Growth or Enterprise plan. Learn more.

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
KalshiKALSHIComing Soon

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.
Interested in data from a prediction market platform we don’t support yet? Let us know — we’re expanding our coverage regularly.