Skip to main content

Getting started

Welcome to the Polybook API. This guide takes you from zero to your first rows of prediction-market order-book data in a few minutes.

What you need​

  1. A Polybook account — create one free.
  2. An active plan (Starter, Pro or Archive) — see pricing. The sample data is free and needs no account.
  3. An API key — create one in your dashboard.

The 30-second version​

# 1. check what your key can access
curl -H "X-Api-Key: YOUR_KEY" https://polybk.com/v1/coverage

# 2. list today's BTC 5-minute markets
curl -H "X-Api-Key: YOUR_KEY" \
"https://polybk.com/v1/windows?symbol=btc&timeframe=5"

# 3. download one market as CSV
curl -H "X-Api-Key: YOUR_KEY" -o market.csv \
"https://polybk.com/v1/windows.csv?symbol=btc&timeframe=5&window_start=1793331300"

That's the whole loop: check access → pick a market window → download it.

Concepts​

TermMeaning
StreamOne symbol × one market length. e.g. btc-5m
WindowOne market's life — a 5- or 15-minute settlement window
RowOne second of one market: best bid/ask (both outcomes), sizes, freshness

Symbols: btc, eth, sol, xrp — each in 5-minute and 15-minute market lengths. 8 streams in total.

Where to go next​