DEX on-chain channels. Subscribe with platform_id. Data payloads use numeric pid; discriminate holder channels with string tp.
Aggregated Token Price and Liquidity
Aggregated (ap) and single-pool (p) USD prices plus liquidity lu.
Channel: onchain@token_agg_event
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressHeaders
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Aggregated Token Price and Liquidity › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Kline
OHLCV candle updates. data uses object keys o, h, l, c, vu, ot (not the legacy u array).
Channel: onchain@kline
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressToken contract addresses.
intervalCandle interval for onchain@kline subscribe param
Headers
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Kline › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Unique Trader
Distinct trader count per candle interval (intervals up to 1d).
Channel: onchain@unique_trader
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressintervalCandle interval for onchain@unique_trader (up to 1d)
Headers
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Unique Trader › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Transaction
Full swap payload. data.pid is the platform ID (number). Same swap may appear on both token0 and token1 channels — dedupe by tx + lgid.
Channel: onchain@transaction
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressHeaders
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Transaction › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Liquidity Event
Add / remove / migrate liquidity. May push twice per event (token0 and token1).
Channel: onchain@liquidity_event
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressHeaders
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Liquidity Event › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Token Rolling Metrics
Rolling windows in sts[] with win (1m, 5m, 1h, 4h, 24h). pc is 0–100 scale (e.g. -0.01 = -0.01%).
Channel: onchain@token_metric
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressHeaders
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Token Rolling Metrics › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Pool Rolling Metric
Subscribe with pool_address. Each window (5m, 1h, 4h, 24h) is an object with bvn, bvu, svn, svu, ut, but, sut.
Channel: onchain@pool_metric
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
pool_addressPool / LP contract addresses.
Headers
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Pool Rolling Metric › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Holder Metrics
Discriminate by string tp: tag_distribution, holder_count, top_share, tag_pnl, tag_balance.
Channel: onchain@holders_metrics
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
addressHeaders
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Holder Metrics › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)
Holder Wallet Update
Subscribe with wallet_address (not token address).
Channel: onchain@holder_wallet_update
Request example
Code
query Parameters
platform_idPlatform ID (e.g. 14 for BSC, 16 for Solana).
Platform / chain ID (numeric, e.g. 14 = BSC, 16 = Solana)
wallet_addressWallet addresses to watch.
Headers
X-CMC_PRO_API_KEYYour CoinMarketCap Pro API key
Holder Wallet Update › Responses
Streaming data push (type: data).
typeMessage type (envelope): welcome / ack / data / error / pong
channelChannel identifier
paramsSubscribe params echo (envelope)
Payload data (envelope)
tsServer timestamp (epoch ms)