Token liquidity changes
const url = 'https://api.chainmetric.io/v2/token/1/c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/liquidity?sortOrder=desc&type=deposit%2Cwithdrawal&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/liquidity?sortOrder=desc&type=deposit%2Cwithdrawal&pool=88e6a0c2ddd26feeb64f039a2c41296fcb3f5640&cursor=7184150972001&limit=50' \ --header 'Authorization: <Authorization>'Returns liquidity adds and removes in the token’s pools, newest first by default. Use it to answer “who added or pulled liquidity for this token, and how much”. Each row carries the provider, pool, both token amounts and their USD value. 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 kinds to keep. Default all.
Example
deposit,withdrawalOnly 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.
Example
50Responses
Section titled “Responses”A page of liquidity changes.
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.
The transaction sender.
The pool’s first token. The native currency is an empty string.
Raw integer amount of token0.
token0 amount in whole units.
LP tokens minted or burned. null when the pool issues none.
Total USD value. null unless both sides are priced.
Pass as cursor for the next page. null on the last page and on desc pages.
Examples
WETH on Ethereum
{ "kind": "token_liquidity", "version": 1, "chain_id": 1, "address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "subject": "token_liquidity.1.c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "lane": "fast", "commitment": "confirmed", "as_of": 26527763, "seq": 7184150972001, "updated_us": 1796037749571000, "data": { "liquidity": [ { "time_us": 1796037743000000, "commitment": "confirmed", "tx_id": "0f1bc2c29d680f56a2a4cb4e672e3942d1eaf603d6f6bea3986f7b2cf4e74f5c", "provider": "8160a33ecd1b7ef7519bc473ddecb03724a4bb35", "pool": "1281c215bd70bef88430d2000da193cab5e7f87a", "dex": "fork_f4fd2e6c_v3", "direction": "add", "token0": "1f9840a85d5af5bf1d1762f925bdaddc4201f984", "token1": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "amount0_raw": "4271244674006792291255", "amount1_raw": "11212771494190033175", "amount0": 4271.244674006793, "amount1": 11.212771494190033, "lp_amount_raw": null, "block": 26527763, "event_index": 126, "amount0_usd": 19959.15797652812, "amount1_usd": 18652.062036466967, "value_usd": 38611.22001299509 }, { "time_us": 1796037743000000, "commitment": "confirmed", "tx_id": "15c1747e33fcf7a77fba500b83cf58abc27ab7b9170619deca5b7f35a7bfdf02", "provider": "38c55214fa8953c8277f0262cbf4a0046fcdb5c6", "pool": "ba9abfdfb7c28e232d853d85c619e4248971aa31", "dex": "fork_f4fd2e6c_v3", "direction": "add", "token0": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "token1": "dac17f958d2ee523a2206206994597c13d831ec7", "amount0_raw": "19754560138148917803", "amount1_raw": "3922575143", "amount0": 19.754560138148918, "amount1": 3922.575143, "lp_amount_raw": null, "block": 26527763, "event_index": 110, "amount0_usd": 32861.03541758544, "amount1_usd": 3918.8514031909986, "value_usd": 36779.88682077644 } ], "next_cursor": 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 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.
The read ran past its time limit. Retry later, or narrow the request.
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}