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 free

Latest 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

nameintypedescription
idquerystrrequiredCMC coin id. Smoke used slug=bitcoin; 1 is BTC.
example: 1
slugquerystroptionalCoin slug. Smoke value is bitcoin.
example: bitcoin
startqueryintoptional1-based row offset.
default: 1
example: 1
limitqueryintoptionalMaximum rows to return.
default: 100
example: 10
auxquerystroptionalExtra field selector. No verified value is recorded.
sortByquerystroptionalSort field.
categoryquerystroptionalCategory filter. market_pairs smoke used spot; ETF routes default to all.
example: spot
centerTypequerystroptionalMarket-pair center filter. The smoke value is all.
example: all
sortquerystroptionalSort field.
example: cmc_rank_advanced
directionquerystroptionalSort direction.
example: desc
spotUntrackedquerystroptionalInclude 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&centerType=all&sort=cmc_rank_advanced&direction=desc&spotUntracked=true"