Skip to content
Qelso

API

A prediction market API for prices and order-book history

Read Polymarket and Kalshi prices, candles, statistics, order books and trades for any window, from a day down to 100 milliseconds. Both venues answer in the same schema. Every Polymarket order-book change is there from Nov 2026.

curl "https://api.qelso.io/v2/markets/polymarket:6364437/books?start=2026-11-10T14:00:00Z&end=2026-11-10T14:02:00Z&interval=1m&depth=3" \
  -H "X-API-Key: $QELSO_API_KEY"

Answer

{  "market": {"id": "polymarket:6364437", "title": "Government shutdown by December 31?",             "outcomes": {"yes": {"label": "Yes"}, "no": {"label": "No"}}},  "outcome": "yes",  "data": [    {"t": "2026-11-10T14:00:00.000Z",     "bids": [[0.40, 116.1], [0.39, 677.71], [0.38, 370.72]],     "asks": [[0.42, 270.66], [0.43, 900.24], [0.44, 50]],     "last_change": "2026-11-10T14:00:59.135Z"},    {"t": "2026-11-10T14:01:00.000Z",     "bids": [[0.40, 116.1], [0.39, 677.71], [0.38, 370.72]],     "asks": [[0.42, 270.66], [0.43, 900.24], [0.44, 50]],     "last_change": "2026-11-10T14:01:47.302Z"}  ],  "next_cursor": null}

A real answer, from our Polymarket data, cut to three levels a side.

Find markets, then read their history

  • Find markets by venue, topic, status or words in the title.
  • Read prices, candles, statistics, order books and trades for any window.
  • Rebuild the order book at any millisecond.
  • Stream a window as NDJSON or CSV, up to a year of minute data.
  • Every row is timed at the end of its interval, so datasets line up.

Every endpoint, parameter and error is in the API reference ↗.

Daily candles of the mid

UpDown
First
50¢
High
65¢
Low
26.5¢
Last
43¢
The YES price of “Government shutdown by December 31?”, Polymarket, 28 Oct to 11 Nov 2026, one candle a day, from our data.

A Python client for every endpoint

It has typed methods, paging and DataFrames, and a stream picks up where it stopped if the connection breaks. It runs on Python 3.10 to 3.13.

pip install qelsoRead the SDK guide ↗

What each plan includes

A request for minute data costs one unit, and finer data costs more. Pro and Ultra read down to 100 milliseconds, Pro for the last 90 days. Ultra also has every book change and the best bid and ask.

Every plan reads Polymarket and Kalshi.

Buying for a firm or institution? Talk to us.

How far back each plan reads

Polymarket, through the API
  • Prices, candles and statistics
  • Order books and trades

Free10 units a minute

The last 30 days
The last 7 days

Trader100 units a minute

Everything we hold
The last 30 days

Pro500 units a minute

Everything we hold
The last 90 days

Ultra2,000 units a minute

Everything we hold
Everything we hold
The axis starts at our first minute data, Aug 2025. Free reads one book every 10 minutes, and no trades.

Questions

How do I get an API key?

Create an account, then a key in the console. The key is shown once, when you create it, so keep it somewhere safe.

Do I need a key for each venue?

No. One key reads both venues, on every plan. Before your first Kalshi data, you confirm once that you’re eligible.

What happens if I go over my limit?

A request over your units a minute returns 429 with a Retry-After header, so wait that many seconds and try again. The Python client does this for you.

How recent is the data?

We add data every hour. Polymarket prices and order books arrive a few hours after each hour ends. Kalshi data arrives about 30 minutes after. GET /v2/venues gives each dataset’s first day.

Can I show the data to my clients?

Not on a self-serve plan. Showing the data to others, or putting it in a product, needs a licence, so talk to us first.

Talk to us

Start with the free plan

Create an account and read the last 30 days of Polymarket and Kalshi prices, candles and statistics through the API. Paid plans add one-minute data and longer history.

Want files instead? Flat files come by market and date.

Browse flat files

Self-serve data is for your own research and trading. Redistribution needs a licence.

Qelso is independent and is not affiliated with or endorsed by Polymarket or Kalshi.