Skip to content

Token stats

View as Markdown
GET
/v2/token/{chain_id}/{address}/stats
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.

chain_id
required
integer
Allowed values: 1 56 8453 1399811149

Chain id: 1 Ethereum, 56 BNB Chain, 8453 Base, 1399811149 Solana.

Example

1
address
required
string

Token address. EVM is 40 lowercase hex characters without 0x; Solana is base58.

Example

c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

The token’s stats document.

Media typeapplication/json
object
kind
required

The document type, for example token_stats.

string
version
required

The document schema version.

integer
chain_id
required

The chain the document is about.

integer
address

The token or wallet the document is about.

string
subject

The stream topic of this document: <kind>.<chain_id>.<address>.

string
lane
required

fast data is published as soon as a block is seen. safe data is published again once the block is final and replaces it.

string
Allowed values: fast safe
commitment
required

How settled the data is: processed (Solana fast), confirmed (EVM fast) or finalized (safe).

string
Allowed values: processed confirmed finalized
as_of

The block height (or Solana slot) the document reflects.

integer format: int64
seq
required

Increases with every newer version of the document. Keep the highest.

integer format: int64
updated_us

When the document was built, Unix microseconds.

integer format: int64
data
required

The document body. Its shape depends on kind.

object
data
required

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
price_usd

Current USD price.

number | null
price_quote

Price in quote-token units, from the latest swap in the price pool.

number | null
price_flagged

True when the current price failed a cross-pool agreement check.

boolean
usd_hops

Hops in the token-to-USD price path. 0 means the token is itself a price anchor.

integer | null
market_cap_usd

Price times circulating supply, or the fully diluted value when is_fdv is true.

number | null
fdv_usd

Price times total supply.

number | null
is_fdv

True when market_cap_usd is the fully diluted value.

boolean
total_supply

Total supply in whole tokens.

number | null
circulating_supply

Total supply less burned balances, in whole tokens.

number | null
high_24h_usd

Highest USD price over 24 h.

number | null
low_24h_usd

Lowest USD price over 24 h.

number | null
volume_24h_usd

USD volume over 24 h.

number | null
volume_total_usd

All-time USD volume.

number | null
trades_total

All-time trade count.

integer | null
price_change_24h_pct

Price change over 24 h in percent. Same shape for the other windows, for example price_change_1h_pct.

number | null
trades_24h

Trades over 24 h. Also buys_24h, sells_24h and the other windows.

integer | null
holder_count

Number of holders.

integer | null
top10_holdings_pct

Percent of circulating supply held by the 10 largest holders. Also 50, 100 and 200.

number | null
dev_holdings_pct

Percent of circulating supply held by the deployer.

number | null
snipers_holdings_pct

Percent of circulating supply held by wallets that bought in the launch block or the 2 blocks after.

number | null
bonding_progress_pct

Bonding-curve fill from 0 to 100. null when the token has no curve.

number | null
first_seen_us

First swap time, Unix microseconds.

integer | null format: int64
last_seen_us

Newest swap time, Unix microseconds.

integer | null format: int64
reference_usd_per_eth

The chain’s wrapped-native USD rate.

number | null
logo

Logo URL.

string | null format: uri
description
string | null
socials
Array<object> | null
object
kind
string
data
string
holders_approximate

True when holder figures may be inexact or stale.

boolean | null
approximate

True when some value is approximate.

boolean

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
}
}

The request is malformed, for example a bad address, an unknown chain or an out-of-range parameter. Do not retry unchanged.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

ExampleunknownChain
{
"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>.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

Examplemissing
{
"error": "api key missing",
"message": "api key missing",
"statusCode": 401
}

The chain is not served, or the token or resource is not known.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

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.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

Examplelimited
{
"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.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

Exampleunavailable
{
"error": "Service Unavailable",
"message": "Service Unavailable",
"statusCode": 503
}
Retry-After
integer

Seconds to wait before retrying.