Token stats
const url = 'https://api.chainmetric.io/v2/token/1/c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/stats';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.chainmetric.io/v2/token/1/c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/stats \ --header 'Authorization: <Authorization>'Returns one token’s current price, market cap, supply, volume, trade counts, price change and holder make-up in one document.
Use it to answer “what is this token worth right now and how active is it”.
Windowed fields exist for 1m, 5m, 15m, 1h, 4h, 6h, 12h and 24h, for example price_change_1h_pct, trades_24h and buys_5m.
A value that cannot be computed exactly is null, never 0.
There is no stream of this document; poll it. For live trades, use GET /v2/stream/token/{chain_id}/{address}/replay.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Chain id: 1 Ethereum, 56 BNB Chain, 8453 Base, 1399811149 Solana.
Example
1Token address. EVM is 40 lowercase hex characters without 0x; Solana is base58.
Example
c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2Responses
Section titled “Responses”The token’s stats document.
object
The document type, for example token_stats.
The document schema version.
The chain the document is about.
The token or wallet the document is about.
The stream topic of this document: <kind>.<chain_id>.<address>.
fast data is published as soon as a block is seen. safe data is published again once the block is final and replaces it.
How settled the data is: processed (Solana fast), confirmed (EVM fast) or finalized (safe).
The block height (or Solana slot) the document reflects.
Increases with every newer version of the document. Keep the highest.
When the document was built, Unix microseconds.
The document body. Its shape depends on kind.
object
Every number that cannot be computed exactly is null, never 0. Windowed fields exist for 1m, 5m, 15m, 1h, 4h, 6h, 12h and 24h.
object
Current USD price.
Price in quote-token units, from the latest swap in the price pool.
True when the current price failed a cross-pool agreement check.
Hops in the token-to-USD price path. 0 means the token is itself a price anchor.
Price times circulating supply, or the fully diluted value when is_fdv is true.
Price times total supply.
True when market_cap_usd is the fully diluted value.
Total supply in whole tokens.
Total supply less burned balances, in whole tokens.
Highest USD price over 24 h.
Lowest USD price over 24 h.
USD volume over 24 h.
All-time USD volume.
All-time trade count.
Price change over 24 h in percent. Same shape for the other windows, for example price_change_1h_pct.
Trades over 24 h. Also buys_24h, sells_24h and the other windows.
Number of holders.
Percent of circulating supply held by the 10 largest holders. Also 50, 100 and 200.
Percent of circulating supply held by the deployer.
Percent of circulating supply held by wallets that bought in the launch block or the 2 blocks after.
Bonding-curve fill from 0 to 100. null when the token has no curve.
First swap time, Unix microseconds.
Newest swap time, Unix microseconds.
The chain’s wrapped-native USD rate.
Logo URL.
object
True when holder figures may be inexact or stale.
True when some value is approximate.
Examples
WETH on Ethereum
{ "kind": "token_stats", "version": 1, "chain_id": 1, "address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "subject": "token_stats.1.c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "lane": "fast", "commitment": "confirmed", "seq": 0, "updated_us": 1796037735621626, "data": { "updated_at_us": 1796037728122758, "price_usd": 1663.7496576455717, "price_quote": null, "price_flagged": false, "usd_hops": 0, "path_liquidity_usd": null, "high_24h_usd": 1688.7292641404915, "low_24h_usd": 1622.4408085512014, "volume_24h_usd": 194081728.9067369, "volume_total_usd": null, "trades_total": null, "first_seen_us": null, "last_seen_us": null, "reference_usd_per_eth": 1661.489871196804, "total_supply": 2309515.8592081224, "circulating_supply": 2308146.4753398555, "fdv_usd": 3842456220.084532, "market_cap_usd": 3840177908.1425176, "is_fdv": false, "approximate": false, "bonding_progress_pct": null, "logo": "https://api.chainmetric.io/v2/logo/fa61792e6c9284787a342ad3196fa5b11970f1ed663bfeaf736c94003c26b2cd/v1/256.webp", "description": null, "socials": [ { "kind": "website", "data": "https://weth.io" } ], "holder_count": null, "top10_holdings_pct": null, "top50_holdings_pct": null, "top100_holdings_pct": null, "top200_holdings_pct": null, "dev_holdings_pct": null, "snipers_holdings_pct": null, "snipers_count": null, "bundlers_holdings_pct": null, "bundlers_count": null, "fresh_traders_holdings_pct": null, "fresh_traders_count": null, "insiders_holdings_pct": null, "insiders_count": null, "smart_traders_holdings_pct": null, "smart_traders_count": null, "pro_traders_holdings_pct": null, "pro_traders_count": null, "holders_approximate": null, "price_change_1m_pct": 0.07088775087611818, "trades_1m": 71, "buys_1m": 28, "sells_1m": 43, "price_change_5m_pct": 0.08514828544997508, "trades_5m": 516, "buys_5m": 219, "sells_5m": 297, "price_change_15m_pct": 0.07736981933658273, "trades_15m": 1370, "buys_15m": 655, "sells_15m": 715, "price_change_1h_pct": 0.3359662222772027, "trades_1h": 5535, "buys_1h": 2880, "sells_1h": 2655, "price_change_4h_pct": -0.41099139989535743, "trades_4h": 23399, "buys_4h": 11205, "sells_4h": 12194, "price_change_6h_pct": -0.860344745119512, "trades_6h": 33583, "buys_6h": 15631, "sells_6h": 17952, "price_change_12h_pct": 1.9233533955417104, "trades_12h": 85080, "buys_12h": 43934, "sells_12h": 41146, "price_change_24h_pct": 2.3928869050483534, "trades_24h": 186534, "buys_24h": 94515, "sells_24h": 92019 }}A Solana token
{ "kind": "token_stats", "version": 1, "chain_id": 1399811149, "address": "Fgpu9KDN2zREYHKSvSxp7LyYqUCL4ys8yKLH2v9vHDPe", "subject": "token_stats.1399811149.Fgpu9KDN2zREYHKSvSxp7LyYqUCL4ys8yKLH2v9vHDPe", "lane": "fast", "commitment": "confirmed", "seq": 0, "updated_us": 1796037737091037, "data": { "updated_at_us": 1796037735731196, "price_usd": null, "price_quote": null, "price_flagged": false, "usd_hops": null, "path_liquidity_usd": null, "high_24h_usd": null, "low_24h_usd": null, "volume_24h_usd": 0, "volume_total_usd": null, "trades_total": null, "first_seen_us": null, "last_seen_us": null, "reference_usd_per_eth": 71.51733737523807, "total_supply": null, "circulating_supply": null, "fdv_usd": null, "market_cap_usd": null, "is_fdv": true, "approximate": false, "bonding_progress_pct": null, "logo": null, "description": null, "socials": [], "holder_count": null, "top10_holdings_pct": null, "top50_holdings_pct": null, "top100_holdings_pct": null, "top200_holdings_pct": null, "dev_holdings_pct": null, "snipers_holdings_pct": null, "snipers_count": null, "bundlers_holdings_pct": null, "bundlers_count": null, "fresh_traders_holdings_pct": null, "fresh_traders_count": null, "insiders_holdings_pct": null, "insiders_count": null, "smart_traders_holdings_pct": null, "smart_traders_count": null, "pro_traders_holdings_pct": null, "pro_traders_count": null, "holders_approximate": null, "price_change_1m_pct": null, "trades_1m": null, "buys_1m": null, "sells_1m": null, "price_change_5m_pct": null, "trades_5m": null, "buys_5m": null, "sells_5m": null, "price_change_15m_pct": null, "trades_15m": null, "buys_15m": null, "sells_15m": null, "price_change_1h_pct": null, "trades_1h": null, "buys_1h": null, "sells_1h": null, "price_change_4h_pct": null, "trades_4h": null, "buys_4h": null, "sells_4h": null, "price_change_6h_pct": null, "trades_6h": null, "buys_6h": null, "sells_6h": null, "price_change_12h_pct": null, "trades_12h": null, "buys_12h": null, "sells_12h": null, "price_change_24h_pct": null, "trades_24h": null, "buys_24h": null, "sells_24h": null }}The request is malformed, for example a bad address, an unknown chain or an out-of-range parameter. Do not retry unchanged.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "blockchain: unknown chain: \"ethereum\"", "message": "blockchain: unknown chain: \"ethereum\"", "statusCode": 400}The key is missing (api key missing), unknown (api key unknown) or revoked (api key revoked). Send Authorization: <key>.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "api key missing", "message": "api key missing", "statusCode": 401}The chain is not served, or the token or resource is not known.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Example generated
{ "error": "example", "message": "example", "statusCode": 1}The key’s request rate limit is reached. No Retry-After is sent; back off and retry.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "api key rate limit reached", "message": "api key rate limit reached", "statusCode": 429}The service is busy or catching up. Wait for the Retry-After header’s seconds when present (5 or 10), then retry. Without it, retry with exponential backoff.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "Service Unavailable", "message": "Service Unavailable", "statusCode": 503}Headers
Section titled “Headers”Seconds to wait before retrying.