---
title: "Markets expiring soonest, with actionable prices"
method: GET
path: "/api/markets/discover/v2/expiring"
tags: ["Discover"]
---

# Markets expiring soonest, with actionable prices

`GET /api/markets/discover/v2/expiring`

## Request

- Base URL: `https://data.kairos.trade`
- URL: `https://data.kairos.trade/api/markets/discover/v2/expiring`
- Auth: API key in header `X-Client-Id` and API key in header `X-Api-Key` and API key in header `X-Api-Secret`

Returns markets expiring soonest, with actionable prices. Responses are cached briefly.

## Query parameters

- `limit` integer

## Response `200`

Soonest-expiring market list.

- DiscoverExpiringResponse
  - `markets` DiscoverExpiringMarket[], required
    - `id` string
    - `ticker` string
    - `title` string
    - `provider` string
    - `price` number
    - `volume1h` number
    - `volume24h` number
    - `volume` number
    - `expiration` string, date-time
    - `token_id` string, nullable
    - `condition_id` string, nullable
    - `category` string, nullable
    - `image` string, nullable
    - `icon` string, nullable
    - `isGrouped` false
  - `count` integer, required
  - `timestamp` string, required

## Other responses

- `401`: No valid credential presented — missing/invalid API-key headers, or an invalid/expired session token.
- `403`: Authenticated but not permitted. Three distinct causes: the session user is not invited (`Invite required`), the API key lacks the operation's scope, or API-key access to the requested venue is switched off (`API access is disabled for <provider>`). Admin and API-key callers bypass the invite check; session and admin callers bypass scope and venue checks.
- `422`: Request failed FastAPI parameter validation.
- `429`: Rate limit exceeded for this route's sliding window, keyed on the session `sub` when authenticated and on the trusted client IP otherwise. Honor `Retry-After`. A per-API-key data ceiling (set per credential) rejects with `{"detail": "API key data rate limit exceeded"}` instead of the `error` envelope below.
- `500`: Expiring-markets rebuild failed on a cache miss.

---

[API](https://skmtc.dev/kairos/apis/kairos-data-api.md) - [All operations](https://skmtc.dev/kairos/apis/kairos-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kairos/apis/kairos-data-api/revisions/cf6b76079e38?raw)
