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

# Events across venues

> List the events and markets Kairos can route, without choosing an exchange. Each market is one contract verified on several venues.

`GET /v1/events` lists what you can offer your users without choosing an exchange. Kairos matches the same contract across Polymarket, Kalshi, Predict.fun and Hyperliquid, and groups the matched contracts into events. You show events and markets; the smart order router decides where each order fills.

> [!NOTE]
>
> **Routed execution is live.** Trade a matched market across venues with [`route-buy`](https://docs.kairos.trade/guides/cross-venue-routing) or the Partner API's [`routedOrder`](https://docs.kairos.trade/wallets/routed-orders). Routed orders buy only; sell through a [routed close](https://docs.kairos.trade/guides/cross-venue-routing.md#step-7-close-a-routed-position) or per-venue orders.

All endpoints on this page work anonymously on the [free tier](https://docs.kairos.trade/market-data/authentication.md). The anonymous budget is per source IP, so a mobile app should call through your own server with an API key rather than from each device.

```
https://md.kairos.trade
```

## Events and matched markets

| Term | Means |
| - | - |
| **Matched market** | One contract listed on two or more venues. Kairos has verified that **YES** means the same outcome on every one of them. Its `id` is a UUID. |
| **Event** | The real-world event its markets belong to, such as one game. Venue events that share a matched market are one Kairos event, so a game listed on three venues usually appears once. |
| **Venue** | One listing of a matched market: the venue's own market id, token ids and outcome names. |
| **Route** | The venue market to hand to the router. You never pick a venue yourself. |

Only matched markets are listed. A market listed on one venue only is not here; list those per venue with [`GET /v1/markets`](https://docs.kairos.trade/market-data/markets). Today the catalog is mostly sports and esports.

### Market status

Every market carries a `status`. The list shows the first four by default; pass `status` to see others. Every status stays readable by id and by venue lookup, so a user who holds a position keeps its market page.

| `status` | Means | Listed by default |
| - | - | - |
| `upcoming` | `start_time` is ahead. | Yes |
| `live` | Started, and within its format's length: 6 hours for a game, 10 hours for cricket, 5½ days for a cricket Test. | Yes |
| `open` | Trading, with no known start. | Yes |
| `resolving` | A venue has a proposed or disputed outcome. | Yes |
| `ended` | The game ran past its format's length. Venues may still trade it until they resolve it. | No |
| `closed` | No venue trades it any more. | No |
| `resolved` | A venue has decided the outcome. | No |

`live` is computed from the scheduled start, not from the game's own clock: a delayed match counts as live from its listed time, and a decided sub-market, such as a map that has been played, stays `live` until a venue resolves it.

A venue that closes or pauses the market keeps its entry with `open: false` and stops counting as executable. The market stays listed while any venue is open.

## List events

```bash theme={null}
curl "https://md.kairos.trade/v1/events?limit=1"
```

```json theme={null}
{
  "events": [
    {
      "id": "ev_cG9seW1hcmtldDoxMzk3NzY5",
      "title": "Valorant: TEC Esports vs LNG Esports (BO3) - China National Tournament Split Omega: Pro Division Group A",
      "category": "Esports",
      "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/valorant-logo-6fab741a16.png",
      "venues": ["polymarket", "predictfun", "kalshi"],
      "venue_events": [
        { "exchange_id": "polymarket", "event_id": "1397769" },
        { "exchange_id": "predictfun", "event_id": "val-tec-lng-2026-11-16" },
        { "exchange_id": "kalshi", "event_id": "KXVALORANTGAME-26NOV160330LNGTEC" }
      ],
      "status": "upcoming",
      "market_count": 4,
      "start_time": "2026-11-16T08:30:00Z",
      "first_close_time": "2026-11-16T14:00:00Z",
      "last_close_time": "2026-11-16T14:00:00Z",
      "markets": [
        {
          "id": "26d72cf2-8462-4c29-bec5-b4d16643fcc8",
          "event_id": "ev_cG9seW1hcmtldDoxMzk3NzY5",
          "title": "Valorant: TEC Esports vs LNG Esports (BO3) - China National Tournament Split Omega: Pro Division Group A",
          "status": "upcoming",
          "category": "Esports",
          "start_time": "2026-11-16T08:30:00Z",
          "close_time": "2026-11-16T14:00:00Z",
          "listed_at": "2026-11-15T22:16:16.272Z",
          "outcomes": { "yes": "TEC Esports", "no": "LNG Esports" },
          "venues": [
            { "exchange_id": "polymarket", "market_id": "0x99d9…b6d2", "token_id_yes": "5615…7321", "token_id_no": "8163…8633",
              "outcome_yes_label": "TEC Esports", "outcome_no_label": "LNG Esports", "tick_size": 0.01, "open": true, "executable": true },
            { "exchange_id": "predictfun", "market_id": "4582832", "token_id_yes": "1054…0520", "token_id_no": "7735…4120",
              "outcome_yes_label": "TEC", "outcome_no_label": "LNG", "tick_size": 0.01, "open": true, "executable": true },
            { "exchange_id": "kalshi", "market_id": "KXVALORANTGAME-26NOV160330LNGTEC-TEC", "market_id_no": "KXVALORANTGAME-26NOV160330LNGTEC-LNG",
              "token_id_yes": "KXVALORANTGAME-26NOV160330LNGTEC-TEC::0", "token_id_no": "KXVALORANTGAME-26NOV160330LNGTEC-LNG::0",
              "outcome_yes_label": "TEC Esports", "outcome_no_label": "LNG Esports", "tick_size": 0.01, "open": true, "executable": false }
          ],
          "executable_venues": ["polymarket", "predictfun"],
          "route": {
            "provider": "polymarket",
            "market_id": "0x99d9…b6d2",
            "market": "polymarket:0x99d9…b6d2"
          },
          "books": { "yes": "syn_80b8d07851a8c11d", "no": "syn_32dacef9099a4c6a" }
        }
      ]
    }
  ],
  "count": 1,
  "total": 1141,
  "next_cursor": "eyJzIjoiY2xvc2VfdGltZSIsImsiOjE3OTQ4MzA0MDAwMDAsImkiOiJldl8uLi4ifQ",
  "has_more": true,
  "as_of": "2026-11-16T08:39:48.274Z"
}
```

### Times

| Field | Means |
| - | - |
| `start_time` | Kickoff for a game, or the open of a fixed window such as an Up or Down market. Null when no venue publishes one. |
| `close_time` | The trading deadline: the earliest one still ahead across the market's venues. It is **not** kickoff, and for a game it often falls days later. It is null for many markets. |

Sort and filter games by `start_time`. Use `close_time` only as "trading ends by".

### Outcomes

`outcomes.yes` and `outcomes.no` are the canonical sides, the same on every venue. A venue's `outcome_yes_label` is only that venue's name for the same side: Predict.fun calls TEC Esports `TEC`.

Some markets ask a yes/no question, such as "Will North Macedonia vs. Slovenia end in a draw?". Their outcomes are plain `Yes` and `No`, and the market `title` says what YES means. Show the title next to the buttons. Some titles name only the market, such as "Games Total: O/U 2.5"; show the event title with them.

Within one event, YES can be a different team from row to row: a handicap's YES and the match winner's YES are not always the same side. Read `outcomes` per market rather than assuming a column order.

### Who can trade what

`executable_venues` lists the venues the router places orders on for this market, read once for every caller. It is not tailored to your account:

* Kalshi is never executable in the catalog, so `executable_venue=kalshi` matches nothing. Kalshi executes only for a Trading API account with a Kalshi connection; [`GET /orders/route-fees`](https://docs.kairos.trade/guides/cross-venue-routing#step-3-check-the-fee-model) reports what your key can route.
* A [Partner API](https://docs.kairos.trade/wallets/overview.md) wallet trades only the venues it is set up and funded on.

To show only markets a user can buy, pass the venues they can trade as `executable_venue`. For a Partner API wallet, those are the venues with `ready: true` in [`GET /v3/wallets/{address}`](https://docs.kairos.trade/wallets/routing#3-check-the-wallet-can-trade-there). A venue whose `next` is `setup` or `fund` becomes tradeable once the user finishes that step.

### Filter and sort

| Parameter | Type | Default | Description |
| - | - | - | - |
| `q` | string | — | Text that must all appear, case-insensitively, in the titles of the event or its markets on any venue. Each word matches as a substring: `q=por` also matches "Esports". At most 200 bytes and 10 words. |
| `category` | string | — | Event category, case-insensitive. Categories are broad (`Sports`, `Esports`): there is no sport or league field yet. |
| `venue` | string | — | Comma-separated exchange ids. Keeps markets listed on at least one of them, executable or not. |
| `executable_venue` | string | — | Comma-separated exchange ids. Keeps markets the router executes on at least one of them. |
| `status` | string | `upcoming,live,open,resolving` | Comma-separated [statuses](#market-status) to keep. |
| `min_venues` | integer | `2` | Keeps markets listed on at least this many venues, 2–8. |
| `routable` | boolean | `false` | When `true`, keeps markets with at least one executable venue. Today nearly every listed market passes; use `executable_venue` to narrow. |
| `starts_after`, `starts_before` | RFC 3339 | — | Keeps markets whose `start_time` falls after or before this time. A market with no known start is excluded once you set either. |
| `closes_after`, `closes_before` | RFC 3339 | — | The same on `close_time`. A market with no known close is excluded once you set either. |
| `sort` | string | `close_time` | `start_time`: earliest kickoff first, so games already live come before upcoming ones; add `starts_after` to skip them. `close_time`: soonest deadline first. `newest`: most recently matched first. `markets`: most markets first. Events with no known time sort last. |
| `include_markets` | boolean | `true` | When `false`, events come without their `markets` array. |
| `limit` | integer | `50` | Events per page, 1–100. |
| `cursor` | string | — | The previous page's `next_cursor`, with the same `sort`. |

Filters apply to markets. An event is listed when at least one of its markets passes, and it carries only those markets, with `market_count`, `venues`, `start_time` and the close window recomputed for them.

An unknown or retired exchange id in `venue` or `executable_venue`, or an unknown `status`, is a `400`, so a typo never reads as an empty catalog. Other unknown parameters are ignored.

```bash theme={null}
# Games kicking off in the next six hours that a Polymarket or Predict.fun wallet can buy
curl "https://md.kairos.trade/v1/events?sort=start_time&executable_venue=polymarket,predictfun\
&starts_after=2026-11-16T09:00:00Z&starts_before=2026-11-16T15:00:00Z"
```

### Keep a copy in sync

Follow `next_cursor` until `has_more` is `false`. The cursor is a keyset: when the catalog changes between pages, you neither skip nor repeat an event whose sort position is unchanged.

Pages can come from catalogs built a few seconds apart, so one full pass is not an exact snapshot. Remove a market from your copy only when it is missing from two passes in a row, or when its own `GET /v1/matched-markets/{id}` answers `404`.

```python theme={null}
import time
import requests

MD = "https://md.kairos.trade"

def get(path, params, attempts=5):
    for _ in range(attempts):
        r = requests.get(f"{MD}{path}", params=params, timeout=10)
        # 429 and 503 cache_cold say when to retry; 503 unavailable does not.
        if r.status_code == 429 or (r.status_code == 503 and "Retry-After" in r.headers):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r.json()
    raise RuntimeError(f"{path}: still rate-limited after {attempts} attempts")

events, cursor = [], None
while True:
    params = {"limit": 100, "sort": "start_time"}
    if cursor:
        params["cursor"] = cursor
    page = get("/v1/events", params)
    events += page["events"]
    if not page["has_more"]:
        break
    cursor = page["next_cursor"]
```

## Get one event

```bash theme={null}
curl "https://md.kairos.trade/v1/events/ev_cG9seW1hcmtldDoxMzk3NzY5"
# { "event": { …every matched market in the event… }, "as_of": "…" }
```

Store event ids. When venue events are later found to share a market and merge, the old id still resolves to the merged event; store the `id` you get back from then on. Venues sometimes list one game as two events that share no market. Until a market links them, that game appears as two events.

## Get one matched market

```bash theme={null}
curl "https://md.kairos.trade/v1/matched-markets/26d72cf2-8462-4c29-bec5-b4d16643fcc8"
# { "market": { … }, "event": { "id": "ev_…", "title": "…", "category": "Esports" }, "as_of": "…" }
```

A matched market's id is stable for as long as the match lasts, and it equals the `link_id` the router reports. An `ended`, `closed` or `resolved` market still answers here, with its status. A `404` means the match was withdrawn or its trading deadline passed: stop offering it.

A user's position is unaffected either way. The router only works on a live match, so sell a position in a withdrawn market with an ordinary order on each venue that holds it: a Partner API [`order`](https://docs.kairos.trade/wallets/trade), or [`POST /orders`](https://docs.kairos.trade/rest/orders) on the Trading API.

## Find the matched market for a venue market

Already hold a venue's market id? Look up its matched market and event, up to 100 at a time:

```bash theme={null}
curl "https://md.kairos.trade/v1/matched-markets?markets=predictfun:4582832,kalshi:KXVALORANTGAME-26NOV160330LNGTEC-LNG"
```

```json theme={null}
{
  "markets": {
    "predictfun:4582832": { "ref_side": "yes", "market": { … }, "event": { … } },
    "kalshi:KXVALORANTGAME-26NOV160330LNGTEC-LNG": { "ref_side": "no", "market": { … }, "event": { … } }
  },
  "as_of": "…"
}
```

`ref_side` says which canonical side the market you asked about stands for. Kalshi lists a two-team game as one ticker per team, so the LNG ticker finds the TEC market with `ref_side: "no"`: a YES on that ticker is the matched market's NO. A reference with no matched market is left out of `markets`.

## Trade a matched market

Hand the market to the router. It prices your size across every venue the account can trade, venue fees included, and fills cheapest first.

> [tab] Partner API (self-custody wallets)
>
> Send a [`routedOrder`](https://docs.kairos.trade/wallets/routed-orders) with `market` set to `route.market` and `outcome` set to `Yes` or `No`.
>
> ```bash theme={null}
> curl -X POST "$BASE/v3/actions" -H "X-Kairos-Partner-Id: $PARTNER" -H "X-Kairos-Wallet-Api: 2" -H "Content-Type: application/json" \
>   -d '{"wallet":"0xUSER","action":{"type":"routedOrder",
>        "market":"polymarket:0x99d95137932adce8abeb485deaec2b2e5e34135731e6400695880081d4bdb6d2",
>        "outcome":"Yes","size":"50","maxPrice":"0.55","clientOrderId":"acme-tec-1"}}'
> ```
>
> In a `routedOrder`, `Yes` and `No` are the matched market's canonical sides: `"outcome":"Yes"` buys **TEC Esports** on every venue in the plan. This differs from a single-venue [`order`](https://docs.kairos.trade/wallets/routing#2-pick-the-same-outcome-on-each-venue), where `Yes` means that venue's first listed outcome.

> [tab] Trading API (API key)
>
> Pass `route.provider` and `route.market_id` to [`GET /orders/route-quote`](https://docs.kairos.trade/guides/cross-venue-routing#step-4-get-a-route-quote), then to `POST /orders/route-buy`. `side=yes` is the canonical YES.
>
> ```bash theme={null}
> curl "https://execution.kairos.trade/orders/route-quote?provider=polymarket&market_id=0x99d95137932adce8abeb485deaec2b2e5e34135731e6400695880081d4bdb6d2&side=yes&quantity=50" \
>   -H "X-Client-Id: $CLIENT_ID" -H "X-Api-Key: $API_KEY" -H "X-Api-Secret: $API_SECRET"
> ```
>
> `GET /orders/route-fees` tells you which venues are executable for your key.

A plan can come back empty, for example when every venue's book is below its minimum order. On the Trading API, quote before you show a buy button for a size; a quote prices your API key's own account. On the Partner API, [`POST /v3/wallets/{address}/route-quote`](https://docs.kairos.trade/wallets/routed-orders#preview-the-plan-first) previews the plan without starting anything, and the first `routedOrder` response also holds the whole plan before the wallet signs.

## Prices

This endpoint carries no prices. For a live price, quote the size you want to show, or stream the market's union books, `books.yes` and `books.no`: the best price across its venues. See [synthetic books](https://docs.kairos.trade/guides/synthetic-books.md). A union book includes every venue on the market, including ones your user cannot trade.

## Freshness and errors

The catalog is rebuilt every 60 seconds; `as_of` says when the one you read was built. Responses carry an `ETag` that covers the content but not `as_of`. Send it back in `If-None-Match`, strong or weak, and an unchanged response answers `304`.

Images are the venues' own image URLs.

| Status | Code | Means |
| - | - | - |
| `400` | `invalid_request` | A malformed filter, an unknown exchange id, a bad `limit` or `sort`, or a cursor issued for another `sort`. |
| `404` | `not_found` | No open event or matched market has this id. |
| `503` | `cache_cold` | The catalog is still being built after a restart. Retry after `Retry-After` seconds. |
| `503` | `unavailable` | The catalog could not be refreshed for over five minutes. It is withheld rather than show a match that may have been withdrawn. |

Each request costs one unit of the `light` [rate-limit bucket](https://docs.kairos.trade/market-data/authentication.md).


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