Token trades
const url = 'https://api.chainmetric.io/v2/token/1/c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/trades?sortOrder=desc&type=buy%2Csell&pool=88e6a0c2ddd26feeb64f039a2c41296fcb3f5640&cursor=7184150972001&limit=50';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/trades?sortOrder=desc&type=buy%2Csell&pool=88e6a0c2ddd26feeb64f039a2c41296fcb3f5640&cursor=7184150972001&limit=50' \ --header 'Authorization: <Authorization>'Returns the latest swaps in one token, newest first by default, optionally in one pool.
Use it to answer “who bought or sold this token recently, at what price”.
Each trade carries the wallet (maker), pool, exchange, side, amounts, USD value, block and transaction id.
Page forward in time with sortOrder=asc and cursor.
EVM chains; Solana support in progress.
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
c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2Query Parameters
Section titled “Query Parameters”desc is newest first. asc is oldest first and pages with cursor.
Example
descComma-separated row types to keep: buy, sell, deposit, withdrawal. Default all.
Example
buy,sellOnly this pool’s rows. A pool that is not the token’s gives an empty answer.
Example
88e6a0c2ddd26feeb64f039a2c41296fcb3f5640The next_cursor of the previous page. Only with sortOrder=asc on trades and liquidity.
Example
7184150972001Rows per page. Larger values are clamped to 200.
Example
50Responses
Section titled “Responses”A page of trades.
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
object
object
Block time, Unix microseconds.
This row’s settlement level.
Transaction hash.
The wallet the trade belongs to.
The pool of the swap.
The exchange the pool belongs to.
Token amount in whole units.
Quote-token amount in whole units.
amount_quote divided by amount_token.
The token’s USD price in this swap.
The swap’s USD value.
Block height.
Log index within the block.
Pass as cursor for the next page. null on the last page and on desc pages.
Examples
WETH on Ethereum, limit 3
{ "kind": "token_trades", "version": 1, "chain_id": 1, "address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "subject": "token_trades.1.c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "lane": "fast", "commitment": "confirmed", "as_of": 26527763, "seq": 7184150972001, "updated_us": 1796037746901662, "data": { "next_cursor": null, "trades": [ { "time_us": 1796037743000000, "commitment": "confirmed", "tx_id": "8450c2fce2e6439abbf8590fa6e7cbe5d5adc4745c57043f86223fccbf01f472", "maker": "94e13996035c0935f30d930dad4edbcacb8bab45", "pool": "96d26bd94618b3c7648574ae778e942abbcda698", "dex": "uniswap_v3", "side": "sell", "amount_token": 0.000200658546812349, "amount_quote": 522.4720084838123, "price_quote": 2603786.4660328445, "price_usd": 1663.4658118317714, "value_usd": 0.3337886324741876, "block": 26527763, "event_index": 450 }, { "time_us": 1796037743000000, "commitment": "confirmed", "tx_id": "8450c2fce2e6439abbf8590fa6e7cbe5d5adc4745c57043f86223fccbf01f472", "maker": "94e13996035c0935f30d930dad4edbcacb8bab45", "pool": "5a5c7cab5f55c7ea020e97d4fa6dd5d99270e56ce76afa61d8cbddec0af92060", "dex": "uniswap_v4", "side": "buy", "amount_token": 0.000200658546812349, "amount_quote": 0.333941, "price_quote": 1664.225149164932, "price_usd": 1663.9755153925573, "value_usd": 0.33389090885, "block": 26527763, "event_index": 445 } ] }}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 read failed. Retry with 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
Trades on Solana, captured 2026-11-30
{ "error": "Internal Server Error", "message": "Internal Server Error", "statusCode": 500}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.