Prediction market databuilt for product teams

One API for prediction markets across Polymarket, Kalshi, and future venues. Real-time prices, trending events, trader analytics, and order books through a single schema.

Latest trades

Coinbase
Phantom
fomo
Uniswap
Rainbow
Magic Eden
Axiom
MoonPay
Farcaster
Pocketpro
Infinex
Relay

Everything you needfor prediction market data

One API for events, markets, traders, holdings, and order books across every venue. No stitching, no reconciliation, no per-venue auth.

Trending events

Find the events moving right now with sub-day
trending scores the venues cannot give you.

Will Bitcoin close above $150,000 by year-end?$42.8M volume
+4.1¢
NBA Finals winner$28.4M volume
+1.8¢
Will the Fed cut rates at the next meeting?$14.9M volume
+1.8¢
Super Bowl winner$6.7M volume
-0.6¢
KWill the Fed hold rates steady?$14.9M volume
-0.6¢

Market discovery

Odds, volume, traders, and event history
across Polymarket, Kalshi, and more.

Bitcoin
OpenCryptoPolymarket> $1M vol
BTC above $150k by EOYPolymarket↑ YES@92¢
BTC above $150k by EOYKalshi↑ YES@92¢
BTC above $150k by EOYPolymarket↑ YES@92¢
BTC above $150k by EOYKalshi↑ YES@92¢
BTC above $150k by EOYPolymarket↑ YES@92¢
BTC above $150k by EOYPolymarket↑ YES@92¢
BTC above $150k by EOYPolymarket↑ YES@92¢

Event-level rollups

Each event response rolls up volume, liquidity,
open interest, trade count, and unique traders.

NBA Final winners
VOLUME+12.4%$48.2M
TRADES+8.1%214,892
BUYS+15.3%31,204
SELLS+0.9%28,117

Charts & OHLC bars

Historical and live OHLC bars for every market
and every outcome in an event, plotted as
probability over time.

1h6h1d1wAll
France38.9%England21.6%Spain20.8%Argentina17.4%

Trader leaderboards

Rank traders by profit, ROI, win rate, or
volume across every time window.

01Theo40x4f2a...91c3
+$184k+312%
020xShroud0x9b1e...4af7
+$121k+247%
03kalshi-kat0x77d0...2c58
+$96k+188%
04meanrev0x31c8...e90b
+$71k+140%

See prediction datain action

Click around and see the queries powering production prediction apps.

Trending events

Live
QueryGraphQL
query TrendingPredictionEvents {
filterPredictionEvents(
filters: { status: [OPEN] }
rankings: [{ attribute: volumeUsd24h, direction: DESC }]
limit: 25
) {
results {
id marketCount
event { question protocol imageThumbUrl }
volumeUsd24h trades24h uniqueTraders24h
}
}
}
Responsefetching…
{
…
}

Codex vs the venue APIsin numbers

Latency, throughput, depth, and breadth. Where Codex pulls ahead on every dimension that matters.

Page load

300ms

300 ms
Polymarket2-5 s
Kalshi1.5-3 s

Rate limit

1,000+ req / s

1,000+
Polymarket30 r/s
Kalshi20 r/s

Time windows

6windows

5m1h4h12h24h1w
Polymarket5m1h4h12h24h1w
Kalshi5m1h4h12h24h1w

Stat-based filters

30+

30+
Polymarket8
Kalshi5

Coverage

Every venue, one schema

Polymarket & Kalshi + Rest as launched
PolymarketAPIPolymarket only
KalshiAPIKalshi only

Real-time

Websockets + webhooks

Real time
PolymarketPartial WS | REST polling
KalshiREST polling

Every venuein one schema

Polymarket and Kalshi today, the rest as they come online. Same query, same fields, same ranking.

Built to pluginto anything

Query events and odds on demand, stream every fill live, or get pushed the moment a market moves.

query filterPredictionEvents200 · 58 ms
filterPredictionEvents(
rankings: [{ attribute: openInterestUsd }]
limit: 4
) { results { event { question protocol } openInterestUsd } }
Response
{ "question": "LeBron James's next team?",
"protocol": "KALSHI", "openInterestUsd": 143571272 }
query filterPredictionEvents200 · 58 ms
filterPredictionEvents(
rankings: [{ attribute: openInterestUsd }]
limit: 4
) { results { event { question protocol } openInterestUsd } }
Response
{ "question": "LeBron James's next team?",
"protocol": "KALSHI", "openInterestUsd": 143571272 }

Codex powersindustry leaders

Learn how Codex saves the world’s
leading apps time, money, and a whole lot
of on-call shifts.

TradingView
TradingView, and their 50 million users, rely on Codex as the sole source of truth for all on-chain data. We were using 3 to 4 data providers previously, including The Graph, and have now consolidated everything on Codex.

Alex T.

Head of Product, Crypto

Simple, scalablepricing

Pricing to fit builders and teams of all sizes.

Almost free

For personal & hobby projects

/ mo

for 10,000 requests/month, after a one-time $1 signup activation fee

10,000 requests/month
5 requests per second
1 API key
Community support
Most popular

Growth plan

For teams & startups

/ mo

1,000,000 requests/month
300 requests per second
5 API keys
Priority support
WebSockets & Webhooks

Requests / month

1M

$350 per million

Est. cost

Overages billed at $350 / 1M requests.

$350 / mo

Enterprise plan

Tailored for large companies

Custom

per million requests

Unlimited requests/month
Custom RPS
Unlimited API keys
Dedicated support
Custom SLAs & packaging

Sub 1s

Data freshness

1,000+

Requests per second

10B+

API requests per month

99.9%

Uptime SLA

Our otherAPI endpoints

10,000 free requests / mo$1 one-time signup feeStart building in minutes

Ready to have thefastest on-chain data?

Get real-time crypto and prediction market data within minutes. Start with 10,000 requests per month for free.