---
title: "Trending market ids for a live-price subscription"
method: GET
path: "/api/markets/trending/ws"
tags: ["Discover"]
---

# Trending market ids for a live-price subscription

`GET /api/markets/trending/ws`

## Request

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

Same ranking as `/api/markets/trending`, reduced to the fields a WebSocket subscriber needs to open a live-price stream (id, symbol, price, 24h volume). Not cached — every call reads the trending index directly.

## Query parameters

- `limit` integer
- `provider` string

## Response `200`

Trending market ids ranked by 1h volume.

- DiscoverTrendingWsResponse
  - `markets` DiscoverTrendingWsMarket[], required
    - `id` string
    - `symbol` string, nullable
    - `title` string
    - `price` number
    - `volume24h` number
    - `provider` string
  - `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`: Trending lookup failed.

---

[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)
