> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qelso.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Venues and IDs

> One ID per market across the API, the venue's own IDs beside it, and how series, events and markets nest.

Every market, event and series has one ID across the API, made of the venue and the venue's own ID, separated by a colon.

| Object | Kalshi | Polymarket |
| - | - | - |
| Market | `kalshi:KXFEDDECISION-26DEC-H0` | `polymarket:3215007` |
| Event | `kalshi:KXFEDDECISION-26DEC` | `polymarket:770450` |
| Series | `kalshi:KXFEDDECISION` | `polymarket:35` |

You can use these IDs on every endpoint, and they never change. A few things make them easier to use.

* A Polymarket market can also be named by its slug, as `polymarket:<slug>`. Responses always return the numeric form, so store that one.
* Kalshi tickers are case-insensitive.
* Every object also carries the venue's own ID in `native_id`. Market details add `native`, with the IDs a venue uses elsewhere: the Kalshi market UUID, and the Polymarket slug and condition ID.
* On Polymarket, each outcome's token ID is in `outcomes.yes.token_id` and `outcomes.no.token_id`. Tokens are not a resource of their own (see [The YES-side book](https://docs.qelso.io/concepts/yes-side-book.md)).

Combo (multivariate) markets are not covered.

## What each venue has

| | Kalshi | Polymarket |
| - | - | - |
| Prices | Bid, ask, mid and last trade | Mid and last trade (bid and ask below `1m` only) |
| Candles | Of the mid (`basis=mid`) or of trades (`basis=trade`), with volume, trade count and VWAP | The same; volume in shares |
| Statistics | Our definitions (`source: computed`), volume in contracts | The venue's own figures (`source: venue_reported`), volume in US dollars, per interval at `1d` only |
| Prices and candles below `1m`, best bid and ask changes | From 17 October 2026 | From 11 November 2026 |
| Order books (`books`) and book changes (`book-updates`) | Minute books, books at a millisecond and below `1m`, and book changes from 17 October 2026 | Minute books from August 2025; at a millisecond, below `1m` and book changes from 11 November 2026 |
| Trades | From 30 June 2021 | The trades of each listed market, from its first; one row per maker order's fill |
| Market details as they were at a past time (`as_of`) | From 17 October 2026 | Not available |
| Tick structure and settlement sources | Yes | Not available |
| New markets | Within a few hours | The day after they're created |

Your plan decides which of these your key can read ([Authentication](https://docs.qelso.io/authentication.md)). Best bid and ask changes and book changes come with Ultra.

`GET /v2/venues` lists each venue's datasets and the first time each one has data, and a dataset not offered yet appears there once it is. Kalshi's markets, trades and minute prices go back to 30 June 2021, and its statistics and books start on 17 October 2026, when we began recording them. Polymarket's markets are listed back to October 2020, with their trades from 21 November 2022; minute prices, books and statistics start in August 2025.

## Series, events and markets

The objects nest the same way on every venue.

* A **series** is a recurring group of events, such as the Fed's decision at each meeting. `frequency` gives the venue's description of how often its events recur.
* An **event** is one question with one or more markets, such as one Fed decision with a market per outcome. Its `start_time` is the earliest open of its markets and its `end_time` the latest close. `mutually_exclusive` is true when at most one of its markets can resolve YES.
* A **market** is one tradable yes/no question, the object every history endpoint reads.

Filter a list with `series=` or `event=` to walk down the tree, and read `series_id` and `event_id` on any object to walk up.

## Statuses

Markets have the same five statuses on every venue. `venue_status` keeps the venue's own value.

| Status | Kalshi | Polymarket |
| - | - | - |
| `unopened` | `initialized` | — |
| `open` | `active` | open |
| `paused` | `inactive` | — |
| `closed` | past close, not yet finalized (`closed`, `determined`, `disputed`, `amended`) | closed, no result yet |
| `settled` | `finalized` | resolved |

A result can appear while a market is still `closed` (Kalshi's `determined`), and it can change after a dispute. `GET /v2/markets/{market_id}/lifecycle` lists every status change, close-time change, result and rules edit we know of, in time order.

On Kalshi, market details can also be read as they were at a past time with `as_of`. Metadata history starts on 17 October 2026; before that, you get a market's first known version.

## Categories

`GET /v2/categories` lists our categories, such as `economics` or `sports`, and the venue categories each one includes. The `category` filter takes our codes, so one filter works on every venue. Each object also keeps the venue's own `venue_category`.

## Finding markets

`GET /v2/markets` filters by venue, category, status, series, event, open and close times, and words in titles, slugs and tickers (`search`). With `search`, results come by relevance.

To look up markets you already know, pass up to 100 IDs at once:

```bash theme={null}
curl -s "https://api.qelso.io/v2/markets?ids=kalshi:KXFEDDECISION-26DEC-H0,polymarket:3215007" \
  -H "X-API-Key: $QELSO_API_KEY"
```

## Keeping a local copy in sync

To keep your own copy of the market list current, page through `GET /v2/markets` with `updated_since`, `sort=updated_at` and `order=asc`, and remember the latest `updated_at` you stored.

`updated_at` is the time of the change at the venue. A change reaches the API some time after it happened there: within a few hours on Kalshi, and a new Polymarket market only the day after it's created (see [How recent the data is](https://docs.qelso.io/concepts/time-and-intervals.md#how-recent-the-data-is)). So a change can sort before a point you already synced past. Start each sync 2 days before the latest `updated_at` you hold (3 hours is enough if you sync Kalshi only), and replace stored markets by `id`. Take that point from the markets you stored, never from your own clock.

```python theme={null}
from datetime import timedelta

since = latest_updated_at - timedelta(days=2)
for market in client.iter_markets(updated_since=since, sort="updated_at", order="asc", limit=1000):
    store[market.id] = market
    latest_updated_at = max(latest_updated_at, market.updated_at)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.