Prediction Market APIPolymarket

Prediction Markets

Production-grade Polymarket data — markets, prices, activity, and P&L — through a single HTTP API

Power AI trading backtests, copy-trading apps, and portfolio dashboards with on-chain Polygon data enriched with Polymarket metadata. Part of the Token API.

  • Read-only REST endpoints covering markets, OHLCV, open interest, activity, positions, and platform aggregates
  • On-chain event data from Polygon, enriched with Polymarket scraper metadata
  • Scales from one-off research scripts to always-on trading agents

What you get with the Prediction Markets API

REST endpoints

Markets, OHLCV, OI, activity, positions, platform, users

Polygon on-chain

Trades, splits, merges, redemptions — at the tx level

Per-user P&L

Realized and unrealized PNL, cost basis, current price

Hourly refresh

Aggregated leaderboards updated continuously

// 01 · Headline metrics

24-hour macro

Six complete 4-hour buckets as of 2026-05-14.
Queried live via /v1/polymarket/platform.

Net open interest · peak bucket +57.1% over window
$77.86M
Outcome-share liquidity locked at 2026-05-13 16:00 UTC — the highest of the window. Bucket average $31.03M · 24h OI flow $186.19M.
Buy vs. sell volume · 24h
3.51×Sell-side dominated every bucket. $85.31M sold vs $24.30M bought across $109.61M of total notional.
22.2%BUY
SELL77.8%
Buy volume$24.30M
Sell volume$85.31M
Total fees0.90%
$981.14k
Vol-weighted rate.
Total trades↗ 94.7k/hr
2.27M
411.8k buys · 1.86M sells.
Avg trade size6 buckets
$48.25
Volume / trades. Sell-weighted.
OI transactionssplit/merge
2.16M
1.97M splits · 184.1k merges.
// 03 / Daily BTC market

BTC Direction Market vs Spot Price

Polymarket Up probability against Hyperliquid BTC OHLCV over the active Polymarket trading window.
Cached live requests via /v1/polymarket/markets/ohlc and /v1/hyperliquid/markets/ohlc.

OHLCV 10m intervals

Bitcoin Up or Down on May 4?

bitcoin-up-or-down-on-may-4-2026 / 2026-05-03 16:00 to 2026-05-04 16:00 UTC / $202.1k Polymarket volume / 3,394 trades. Peak bucket $15.7k at 2026-05-04 15:30 UTC.

0%25%50%75%100%$15.7k$0$78,293$79,384$80,475PINAX16:00May 322:40May 304:40May 410:20May 416:00May 4
token_id 481527055417...79417776peak 2026-05-04 15:30 / $15.7kBTC range $78,293 to $80,475
// 02 · All-time leaders

Largest Volume

Highest-volume Polymarket markets to date, sorted by lifetime notional.
Queried live via /v1/polymarket/markets.

Polymarket Website →
  1. 01

    Will Donald Trump win the 2024 US Presidential Election?

    Jan 4, 2024Nov 5, 2024ResolvedYesNo
    $1.53B
    Lifetime vol
  2. 02

    Will Kamala Harris win the 2024 US Presidential Election?

    Jan 4, 2024Nov 4, 2024ResolvedYesNo
    $1.04B
    Lifetime vol
  3. 03

    Will Donald Trump be inaugurated?

    Nov 1, 2024Jan 20, 2025ResolvedYesNo
    $400.4M
    Lifetime vol
  4. 04

    Will the Sacramento Kings win the 2025 NBA Finals?

    Sep 24, 2024Jun 23, 2025ResolvedYesNo
    $378.0M
    Lifetime vol
  5. 05

    Will Nicolae Ciucă win the 2024 Romanian Presidential election?

    Nov 8, 2024Dec 8, 2024ResolvedYesNo
    $326.5M
    Lifetime vol
  6. 06

    US forces enter Iran by April 30?

    Mar 18, 2026Apr 30, 2026ResolvedYesNo
    $269.0M
    Lifetime vol
  7. 07

    Will Zelenskyy wear a suit before July?

    May 22, 2025Jun 30, 2025ResolvedYesNo
    $242.2M
    Lifetime vol
  8. 08

    Will any other Republican Politician win the 2024 US Presidential Election?

    Jan 6, 2024Nov 5, 2024ResolvedYesNo
    $241.7M
    Lifetime vol
// 04 · Flow over time

Volume, bucketed

Each bar is a complete 4-hour window. Peak activity at 2026-05-13 16:00 UTC.
Queried live via /v1/polymarket/platform.

Traded volume · stacked buy / sell

$109.61M / 24h

Sum of buy + sell volume across the 6 complete buckets. Peak bucket $29.99M (2026-05-13 16:00). Bucket average $18.27M.

BuySell
$0$8M$15M$23M$30M00:00May 1304:0008:0012:0016:0020:002026-05-13 00:00 UTCVolume$15.41MBuy $3.43MSell $11.98MTrades333,9602026-05-13 04:00 UTCVolume$11.79MBuy $2.78MSell $9.01MTrades322,2932026-05-13 08:00 UTCVolume$16.58MBuy $4.10MSell $12.48MTrades367,4442026-05-13 12:00 UTCVolume$18.85MBuy $4.60MSell $14.26MTrades468,4982026-05-13 16:00 UTCVolume$29.99MBuy $5.28MSell $24.71MTrades436,4692026-05-13 20:00 UTCVolume$16.98MBuy $4.11MSell $12.87MTrades343,065
avg bucket $18.27Mpeak 2026-05-13 16:00 · $29.99Mlow 2026-05-13 04:00 · $11.79M
// 05 · Raw buckets

Hourly breakdown

Exact response, newest first. Partial current bucket excluded from totals.
Queried live via /v1/polymarket/platform.

Bucket (UTC)VolumeBuySellTradesNet OIFeesRate
2026-05-13 20:00$16,982,399$4,111,012$12,871,387343,065$23,735,488$165,9530.98%
2026-05-13 16:00$29,992,557$5,283,172$24,709,385436,469$77,864,355$286,8820.96%
2026-05-13 12:00$18,852,089$4,595,405$14,256,685468,498$22,988,005$169,7100.90%
2026-05-13 08:00$16,579,208$4,103,739$12,475,469367,444$21,734,407$132,5250.80%
2026-05-13 04:00$11,787,024$2,775,327$9,011,696322,293$24,764,589$102,4370.87%
2026-05-13 00:00$15,413,868$3,431,403$11,982,465333,960$15,105,568$123,6290.80%
6 rows · complete buckets only · usdc 6dp normalizedquery 123 ms · refreshes ≤ 60s

How teams use it

Three patterns we see most often. Each uses a small subset of the endpoints — you can mix them as needed.

01

AI Trading Backtesting

Replay historical price action per outcome token and stress-test strategies against real liquidity events. Combine OHLCV with the activity feed to reconstruct fills and fees bar-by-bar.

Sample response
[
  {
    "timestamp": "2026-04-01 00:00:00",
    "open": 0.997,
    "high": 0.998,
    "low": 0.997,
    "close": 0.998,
    "volume": 295143.37,
    "trades": 1206,
    "buys": 498,
    "sells": 708,
    "unique_makers": 592,
    "unique_takers": 121,
    "total_fees": 0,
    "fee_count": 0,
    "effective_fee_rate": 0,
    "market": {
      "condition_id": "0x6331a779482df72d904c3c1e12b6409ff836bc06f8c97945cba9b25ada2c605c",
      "market_slug": "will-the-portland-trail-blazers-win-the-2026-nba-finals",
      "token_id": "48262548906086150698299934962091284390063927164151224719187427455086357699251",
      "outcome_label": "No",
      "closed": false
    }
  }
]

02

Copy Trading

Watch the top traders from the user leaderboard and mirror their entries and exits. The activity feed emits every trade, split, merge, and redemption with block-level timing so you can react in near real-time.

Sample response
[
  {
    "event_type": "trade",
    "timestamp": "2026-04-02 16:51:31",
    "block_num": 85014327,
    "tx_hash": "0xf190865afd395e2f4b8f2e5f8ceb2c05a86d94a73ea411e8a8a3fc649924c420",
    "user": "0x38e598961dd0456a7fb2e758bd433d3e59fb8a4a",
    "amount": "3976744",
    "value": 3.98,
    "fee_amount": "526315",
    "fee_value": 0.53,
    "market": {
      "condition_id": "0xcb37916b953e6b37a5be32ceabc5a093614be15d9e6abb7668bf6400fbf36d46",
      "market_slug": "bitcoin-up-or-down-on-april-3-2026",
      "token_id": "3861173442961229042274748637211736540847931193208187121747580704941582603312",
      "outcome_label": "Down",
      "closed": false
    }
  }
]

03

User Portfolio P&L

Build wallet dashboards and tax exports that show what a user holds across every Polymarket outcome token — with cost basis, current price, and realized vs unrealized PNL.

Sample response
[
  {
    "user": "0x38e598961dd0456a7fb2e758bd433d3e59fb8a4a",
    "buy_cost": 6438.35,
    "sell_revenue": 247.09,
    "realized_pnl": -6191.26,
    "unrealized_pnl": 9005.64,
    "total_pnl": 2814.38,
    "pnl_pct": -0.96,
    "net_position": 9096.61,
    "avg_price": 0.68,
    "current_price": 0.99,
    "position_value": 9005.64,
    "active": true,
    "buys": 693,
    "sells": 20,
    "transactions": 713,
    "market": {
      "condition_id": "0x59feadddd58e7821c086ee9f3dc4f544514b94ebd0e8d645a3c4d80ebdd354a2",
      "market_slug": "btc-updown-5m-1771359600",
      "token_id": "25362470215305294361999917933416973453076214567033270695579745712197481070383",
      "outcome_label": "Up",
      "closed": false
    }
  }
]

How it works

Same pattern as the rest of the Token API — issue an API key, hit the endpoint, parse the JSON.

1

Request API credentials from Pinax

2

Pick the endpoint for your use case

3

Call it from your app, notebook, or MCP client

4

Ship your strategy, dashboard, or agent

Frequently Asked Questions

Same data, one endpoint.

Platform, markets, users, OHLC — all under /v1/polymarket/*. Free tier starts at 100 req/s.

Join Our Newsletter

Signup today to learn about our beta programs for your chain.