https://api.qelso.io. Contract version 2.1.0.
The Qelso Data API serves historical data from prediction-market venues through one set of endpoints:
market discovery, minute and sub-minute prices, the order book at any millisecond, best bid/ask
and book changes, and trades.
Authentication
- Send your API key in the
X-API-Keyheader on every request (GET /v2/healthneeds none). - Existing API keys work here.
- Your plan and add-ons decide which venues and data you can read.
GET /v2/usageshows them.
Venues and IDs
- Every market, event and series has an ID made of the venue and the venue’s own ID, separated by a colon. Examples:
- market
kalshi:KXFEDDECISION-26OCT-H0orpolymarket:560868; - event
kalshi:KXFEDDECISION-26OCT; - series
kalshi:KXFEDDECISION.
- market
- For Polymarket, the part after the colon may also be the slug. Responses always return the numeric form.
- Kalshi tickers are case-insensitive.
- Responses also carry the venue’s own IDs:
native_ideverywhere, andnativein market details. GET /v2/venueslists the venues, the datasets each one provides, and from when.- Combo (multivariate) markets are not covered.
One market, one book: the YES side
- Every market has two outcomes, YES and NO, and one order book: the YES book, bids and asks, best first.
- On Kalshi, a NO bid at p is a YES ask at 1 − p.
- Polymarket’s two tokens mirror each other, so the YES token’s book is the market’s whole book. Never add the two together.
outcome=noreturns the NO view on every price endpoint: prices become 1 − p, and bids and asks swap.- Many Polymarket markets have outcomes other than “Yes” and “No”: two teams, “Over”/“Under”, “Up”/“Down”. On those, YES is the venue’s first-listed outcome and NO the second. Every market object, and the
marketobject of every history response, gives both labels inoutcomes, e.g.{"yes": {"label": "Browns"}, "no": {"label": "Steelers"}}. - Scalar markets (
market_type: scalar) settle at any value from 0 to 1 (settlement_value).
Time
-
Inputs take three forms:
- RFC 3339 (
2026-10-18T14:00:00Z). Offsets are allowed; no offset means UTC. - A date (
2026-10-18), meaning midnight UTC. - Epoch milliseconds.
- RFC 3339 (
-
Windows are
[start, end):startis included,endis not. Anendlater than now is treated as now. -
Outputs are RFC 3339 UTC with milliseconds (
2026-10-18T14:00:00.000Z). -
Grid rows (prices, candles, stats, sampled books) each cover one interval
[t, t + resolution)on the UTC grid:- 1m on the minute; 1h on the hour; 6h at 00, 06, 12 and 18; 1d at midnight;
- 1s and 100ms on whole seconds and tenths.
tis the interval’s start. Prices, books and the state fields of stats are as of the interval’s end (its close), so every grid endpoint lines up ont. Only whole intervals inside the window are returned. A row hascarried: truewhen nothing changed in its interval, so its values repeat the previous row’s. Where there is no data at an interval’s end, its values are null. -
Event rows (best bid/ask changes, book changes, trades) carry:
ts: the venue’s time, in milliseconds;seq: orders a market’s rows that share the samets, from 1.(ts, seq)is a row’s position in the market; don’t compare it across markets.
Prices and sizes
- Prices are numbers from 0 to 1 (dollars per $1 contract, the implied probability), with up to 6 decimals, on every venue.
- Sizes are in contracts (Kalshi) or shares (Polymarket), with up to 6 decimals.
mid= (bid + ask) / 2. An empty bid counts as 0 and an empty ask as 1. It is null when both sides are empty.
Pagination
- Lists and history pages return
next_cursor. Pass it back ascursor, with the same parameters, until it is null. - Cursors are opaque, tied to the request that produced them, and valid for 24 hours.
- On history endpoints, a paging run serves the data available when its first page was served, so its pages never skip or repeat a row, unless the data is corrected while you page. Data that arrives later appears when you request again.
Streams
-
History endpoints also stream. Send one of:
Accept: application/x-ndjson: one JSON row per line, the same objects as indata;Accept: text/csv: a header row first.
-
Streams carry rows only. For Kalshi data, the attribution and data type come in the
Qelso-AttributionandQelso-Data-Typeresponse headers. - A stream that ends normally has delivered every row we hold for the window.
-
If anything fails after the first byte, we close the connection without finishing the response, so your HTTP client raises an error. Resume with
after=set to the last row’s key (each endpoint gives the fields). -
Send
Accept-Encoding: gzipfor large streams.
Limits
Rate limits are counted in units per minute per organisation. Each response’sQelso-Units header gives its cost; X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset give your budget.
- Book pages also stop at 100,000 price levels.
-
Requests rejected with 400, 403, 404 or 406 cost 1 unit.
GET /v2/healthis free. - Each organisation may run at most 2 streams, 4 sub-minute or tick requests and 2 list or search requests (series, events and markets) at once.
-
Plans may have monthly quotas, per calendar month in UTC, shown by
GET /v2/usagewith what’s used:- rows: the data rows you receive (prices, candles, stats, books, best bid/ask, book changes and trades, in pages and streams), with the rows of files you buy in the store;
- requests: data requests answered with at least one row.
GET /v2/usagenever count, and a used-up quota never refuses them. A quota may let data through past itslimitbefore it refuses. - A stream won’t start when its quota is used up. Once started, a stream is never cut off for rate or quota, so it may finish slightly over.
Errors
Errors share one shape:{"error": {"code": "...", "message": "...", "request_id": "...", "details": {...}}}. The code values are stable:
Kalshi data
- Every response and stream that contains Kalshi data carries
"attribution": "Powered by Kalshi Research"and adata_type:historical: all of the data is at least 24 hours old;delayed: some of it is newer.
- Show the attribution wherever you display Kalshi data.
- Kalshi data is available to eligible organisations whose plan includes it.
Coming from v1
- IDs carry the venue:
polymarket:560868orpolymarket:<slug>. - Tokens are gone. There is one YES book per market; use
outcome=nofor the NO side. - Prices at 10m, 1h, 6h and 1d are interval closes, not averages. Sampled books are as of each interval’s end, not its start, so they line up with prices.
- Errors have stable codes. Limits are counted in units, not requests.
Versioning
- v2 changes only by addition: new endpoints, parameters, fields and enum values (venues, datasets, entitlements, lifecycle types, error codes) may appear. Treat unknown values as “other”.
- Anything that would break a client goes into a new version, with notice.