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
- First
- 50¢
- High
- 65¢
- Low
- 26.5¢
- Last
- 43¢
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
- Prices, candles and statistics
- Order books and trades
Free10 units a minute
Trader100 units a minute
Pro500 units a minute
Ultra2,000 units a minute
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.
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 filesSelf-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.