GET /api/data-api/v3/cryptocurrency/market-pairs/latest
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cmc/api/data-api/v3/cryptocurrency/market-pairs/latestCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeLatest market pairs for a coin (exchange, pair, category) and the pair count.
name=market_pairs. id is required; slug is the alternative identifier. An empty query answers an edge 502, id=1 alone returns the bounded pair list. numMarketPairs for BTC was 3484.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
id | query | str | required | CMC coin id. Smoke used slug=bitcoin; 1 is BTC. example: 1 |
slug | query | str | optional | Coin slug. Smoke value is bitcoin. example: bitcoin |
start | query | int | optional | 1-based row offset. default: 1example: 1 |
limit | query | int | optional | Maximum rows to return. default: 100example: 10 |
aux | query | str | optional | Extra field selector. No verified value is recorded. |
sortBy | query | str | optional | Sort field. |
category | query | str | optional | Category filter. market_pairs smoke used spot; ETF routes default to all. example: spot |
centerType | query | str | optional | Market-pair center filter. The smoke value is all. example: all |
sort | query | str | optional | Sort field. example: cmc_rank_advanced |
direction | query | str | optional | Sort direction. example: desc |
spotUntracked | query | str | optional | Include untracked spot pairs. Smoke sent the string true. example: true |
Response
type: object
data key: marketPairs
count key: numMarketPairs
pagination: offset
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/api/data-api/v3/cryptocurrency/market-pairs/latest?id=1&slug=bitcoin&start=1&limit=10&category=spot¢erType=all&sort=cmc_rank_advanced&direction=desc&spotUntracked=true"