Polymarket order books, 5x faster.

Sub-second history of Polymarket's crypto Up/Down markets, with both order books in every snapshot. Backtest your bot against the book it would have traded into.

₿
BTC Up/Down5m
01:30:00 — 01:35:00 UTC
LIVE
BTC Reference
$0.00+0.42%
UP
0.00
Vol: 284KH: 0.65 L: 0.48
DOWN
0.00
Vol: 196KH: 0.52 L: 0.35
Order Book — UP Token
0.01 spread
Bids
2,4500.57
3,8000.56
1,9000.55
4,2000.54
Asks
1,8000.58
2,9000.59
3,1000.60
2,2000.61
Snapshots 1,847
Depth 8 levels
Sub-second resolution

Replay a real market

Loading a recorded market

  • ▲ Up
  • ▼ Down
  • BTC vs open

Each market asks whether BTC ends at or above its opening price. Up and Down shares trade between $0 and $1, so a price of 0.62 means traders give that outcome a 62% chance.

Loading a recorded market

See this snapshot below

255M snapshots stored37,500 markets indexed39-69 ms mean response

 

Any moment, exactly as the API returns it

This is a real market from our store. Drag the pen along the roll and the order books, the request and its JSON response follow it. Your backtest can ask for any moment of any market the same way.

    Order books
    ▲ Up token
    Bid sizePriceAsk size
     
    Request
     

    HTTP/2 200 · application/json

     

    Paste a request, get the book back

    It's plain REST with one auth header, and the TypeScript SDK wraps the same calls with typed responses.

    1. List markets

      The newest BTC 5m markets, with outcomes and prices.

    2. Pull snapshots

      500 per page, with both order books when you ask for them.

    3. Jump to a moment

      The snapshot nearest any timestamp, within two seconds.

    Get your API key

    Works with the tools you already code in

    • Claude Code
    • Codex
    • Cursor
    • GitHub Copilot
    • Gemini CLI
    • Windsurf
    • Grok Bot
    • Muse Code
    • OpenClaw
    • OpenCode
    • Qwen Code
    • Dots Studio
    export POLYTEST_KEY="pt_live_your_key_here"
    API="https://api.polytest.io/api/v1"
    
    # List the newest BTC 5m markets
    curl -G \
      "$API/markets" \
      -H "X-API-Key: $POLYTEST_KEY" \
      -d coin=btc -d market_type=5m -d limit=10
    
    # Pull one market's snapshots, both order books included
    curl -G \
      "$API/markets/$MARKET_ID/snapshots" \
      -H "X-API-Key: $POLYTEST_KEY" \
      -d include_orderbook=true -d limit=500
    
    # The snapshot nearest one moment (within 2 seconds)
    curl -G \
      "$API/markets/$MARKET_ID/snapshots/at" \
      -H "X-API-Key: $POLYTEST_KEY" \
      --data-urlencode timestamp=$ISO_TIME \
      -d include_orderbook=true
    $ export POLYTEST_KEY=pt_live_…bash · zsh

    5x faster than other Polymarket data APIs

    Mean responses take 39-69 ms and come from a global edge cache, so a backtest spends its time in your code.

    Latency

    42ms

    p50 response · p99 < 120ms

    Reliability

    99.9%

    uptime · last 60 days

    60d agoToday

    Coverage

    Coins
    BTCETHSOLXRP soonDOGE soonBNB soon
    Timeframes
    5m15m1hr4hr24hr

    BTC in all five windows, ETH and SOL in 5m, 15m and 1hr. Every market is recorded about 8 times a second, with both order books.

    What people build with it

    Build a trading bot on real data

    Whether you code by hand or with Cursor, Claude Code, Codex or Gemini CLI, your bot sees the full order book at every moment, the way it would face it live. Clean JSON means your AI assistant writes working integration code on the first try.

    Example run, for illustration

    Mode
    Paper replay
    Markets
    ETH, SOL 5m
    Fills simulated
    2,841
    Slippage
    0.3 bps
    Latency
    42ms p50
    Depth
    15 levels
    Read the bot-building guide

    Questions

    Something else on your mind? Ask us on the contact page.

    What exactly is PolyTest?

    PolyTest is a Polymarket backtesting API for crypto Up/Down markets. It records each market about 8 times a second: the coin's spot price, the Up and Down prices, and both order books, each stamped to the millisecond. You can rewind to any moment of a past market and test a strategy against exactly what traders saw then.

    What data do I get per snapshot?

    Each snapshot has a millisecond timestamp, the coin's spot price (BTC, for example), and the Up and Down prices, which are the best ask on each side. Add include_orderbook=true and it also carries both order books, bids and asks, up to 15 price levels a side. The JSON response near the top of this page is a real one.

    Which coins and timeframes are supported?

    BTC, ETH and SOL Up/Down markets. BTC comes in 5-minute, 15-minute, 1-hour, 4-hour and 24-hour windows, and ETH and SOL in 5-minute, 15-minute and 1-hour windows. That's 37,500+ markets so far. XRP, DOGE and BNB are coming soon, and more coins follow as Polymarket lists them.

    How far back does the data go?

    Builder plans can query the last 14 days of markets, and Pro plans the full history we keep: 255M+ snapshots today.

    Is there a free trial?

    Yes. Every account starts with a 3-day free trial of the full Builder plan: 14 days of history, orderbook depth, 3 API keys, and 250 requests/min. A card is required up front, and you won't be charged until the trial ends — after 3 days it converts to Builder at $29/mo, billed monthly. Cancel anytime. Prefer to skip the trial? Subscribe directly, monthly or yearly.

    How fast is the API?

    Median (p50) response time is under 50 ms and p99 is under 120 ms. Responses come from a global edge cache, so they're fast wherever you are. A page holds up to 500 snapshots, and a whole 5-minute market fits in a handful of pages.

    Can I use this to build a trading bot?

    Yes, it's one of the main reasons people use PolyTest. Every snapshot can include both full order books, so your backtest fills orders against the depth that was on the book at that moment and pays the slippage a real order would have paid.

    What's the pricing?

    Start with a 3-day free trial that converts to Builder ($29/mo, billed monthly) for 14 days of history and orderbook depth, or subscribe to Builder yearly at $17/mo ($204/year). Pro is $49/mo for unlimited data and priority support, with custom Enterprise pricing for high-volume needs. Check the pricing page for full details.

    What happens when I cancel?

    You can cancel anytime from the Billing dashboard. Cancelling takes effect immediately: your subscription ends, your API keys are revoked, and API access stops right then — not at the end of the billing period. The unused remainder of a paid period isn't refunded or credited, so cancel when you're actually done. Cancelling during the free trial ends it at once and you're never charged. You can subscribe again anytime, though the free trial is one per customer.

    Can I export data to CSV?

    The API returns JSON, and a few lines of code turn it into CSV. If you need a bulk export for academic research, get in touch and we'll help.

    I'm new to prediction markets. Is PolyTest for me?

    Yes. The replay at the top of this page shows how an Up/Down market moves from open to close, and the quickstart takes you from zero to your first request. With the free trial you can study real prices, spreads and order books before you risk any money.

    Replay your first market today

    Start the free trial, create a key, and make your first call in minutes.