Skip to content

Token liquidity changes

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

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
sortOrder
string
default: desc
Allowed values: desc asc

desc is newest first. asc is oldest first and pages with cursor.

Example

desc
type
string

Comma-separated kinds to keep. Default all.

Example

deposit,withdrawal
pool
string

Only this pool’s rows. A pool that is not the token’s gives an empty answer.

Example

88e6a0c2ddd26feeb64f039a2c41296fcb3f5640
cursor
string

The next_cursor of the previous page. Only with sortOrder=asc on trades and liquidity.

Example

7184150972001
limit
integer
default: 100 >= 1 <= 200

Rows per page.

Example

50

A page of liquidity changes.

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
object
liquidity
Array<object>
object
time_us

Block time, Unix microseconds.

integer format: int64
commitment
string
tx_id
string
provider

The transaction sender.

string
pool
string
dex
string
direction
string
Allowed values: add remove
token0

The pool’s first token. The native currency is an empty string.

string
token1
string
amount0_raw

Raw integer amount of token0.

string | null
amount1_raw
string | null
amount0

token0 amount in whole units.

number | null
amount1
number | null
lp_amount_raw

LP tokens minted or burned. null when the pool issues none.

string | null
amount0_usd
number | null
amount1_usd
number | null
value_usd

Total USD value. null unless both sides are priced.

number | null
block
integer format: int64
event_index
integer
next_cursor

Pass as cursor for the next page. null on the last page and on desc pages.

string | null

Examples

Exampleweth

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.

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 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 read failed. Retry with 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

Examplesolana

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.

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.

The read ran past its time limit. Retry later, or narrow the request.

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
}