CoinMarketCap WebSocket API

CEX spot quotes via market@crypto_latest_price. Subscribe with crypto_ids (14 fields; ~5s for top 500 by rank, ~15s for other subscribed IDs). Plan: Startup and above.


Latest Price

GET
wss://pro-stream.coinmarketcap.com
/v1

Subscribe with crypto_ids. Pushes 14 fields ~5s for top 500 by rank, ~15s for all other cryptocurrencies. Plan: Startup and above.

Channel: market@crypto_latest_price

Request example

JSONCode
{ "id": 1, "method": "subscribe", "channel": "market@crypto_latest_price", "params": { "crypto_ids": [ 1, 1027, 1839 ] } }

Latest Price › query Parameters

crypto_ids
​integer[] · required

CoinMarketCap cryptocurrency IDs.

Latest Price › Headers

X-CMC_PRO_API_KEY
​string · required

Your CoinMarketCap Pro API key

Default: YOUR_API_KEY

Latest Price › Responses

200

Streaming data push (type: data).

type
​string · enum · required

Message type (envelope): welcome / ack / data / error / pong

Enum values:
data
channel
​string · required

Channel identifier

params
​object · required

Subscribe params echo (envelope)

​CryptoLatestPriceFullPayload · required

Payload data (envelope)

ts
​integer · int64 · required

Server timestamp (epoch ms)