Who added and removed liquidity in a DEX pool
Every liquidity event of the pool in a block window, newest first — the block, time and transaction, the provider, whether liquidity was added or removed and the event as the pool names it, and the USD value added or removed over the legs that could be priced (pricedLegs / unpricedLegs say how many; absent when none could). The window is fromBlock..toBlock, at most 30 days of blocks (216 000); by default the 7 days up to the events' reach. Uniswap v4 pools are not covered: their liquidity events are not recorded, and such a pool answers 422 pool_not_covered. Paged by an opaque cursor: pass nextCursor back as cursor until it is absent.
GET https://tracefast.xyz/api/v1/chains/1/pools/{pool}/liquidity-events
| Parameter | In | Type | Notes |
|---|---|---|---|
pool | path | string | The pool's address (0x + 40 hex), or its own 32-byte id (0x + 64 hex: a Uniswap v4 PoolId, or a Balancer v2 poolId); any case. |
fromBlock | query | integer, optional | The window's first block. Default: 7 days of blocks below toBlock. |
toBlock | query | integer, optional | The window's last block. Default: the last block the liquidity events have reached (meta.asOfBlock). |
limit | query | integer, optional | 1 to 100, default 25. |
cursor | query | string, optional | nextCursor of the previous page. Opaque; valid only for this method, pool and fromBlock / toBlock as passed; it keeps the window the walk began under. |
Access — an API key on the Investigation plan or higher (plans), or no key at all: pay per call with x402 at the same path on https://mpp.tracefast.xyz/api/v1, at the price its 402 states. As a tool for AI agents: get_pool_liquidity_events on the MCP server. Stable — see stability.
chains/1 is a literal: other chain ids answer 404 chain_not_supported. An unknown query parameter is refused rather than ignored.
Response
200 application/json, the Uniswap v3 USDC/WETH 0.05% pool. Lists in the example are cut to two entries.
{
"data": {
"chainId": 1,
"pool": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
"fromBlock": 26384036,
"toBlock": 26434435,
"events": [
{
"blockNumber": 26434404,
"txIndex": 83,
"logIndex": 131,
"timestamp": 1794914135,
"txHash": "0x7730d7a24d8e69cc5f74b5ffded346d4dc735a9f3ad78703b6a24ecec6151c06",
"provider": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"action": "add",
"eventType": "mint",
"usdAdded": 138126.992059,
"usdRemoved": 0,
"pricedLegs": 2,
"unpricedLegs": 0,
"tokenCount": 2
},
{
"blockNumber": 26434398,
"txIndex": 146,
"logIndex": 415,
"timestamp": 1794914063,
"txHash": "0x2935fb0be9346077b04f00b18517dc7a6b8c84a29bd170a3b3abc91d2ceaaca4",
"provider": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"action": "remove",
"eventType": "collect",
"usdAdded": 0,
"usdRemoved": 570.5891805728884,
"pricedLegs": 2,
"unpricedLegs": 0,
"tokenCount": 2
}
],
"nextCursor": "AVsyNjM4NDAzNiwyNjQzNDQzNSwyNjQzNDM5OCwxNDYsNDE1XRPutSiDpz7BHTnnn1PcafU"
},
"meta": {
"chain": "ethereum",
"timestamp": 1794918373159,
"cached": false,
"asOfBlock": 26434435,
"docs": "https://docs.tracefast.xyz/api/pool-liquidity-events"
}
}data
| Field | Meaning |
|---|---|
chainId | Chain id. 1 is Ethereum mainnet. |
events | The events of this page, newest first. |
fromBlock | First block of the window read, included. |
nextCursor | Pass back as cursor for the next page; absent on the last one. |
pool | The pool contract, lowercase and 0x-prefixed. |
toBlock | Last block of the window read, included. |
data.events[]
| Field | Meaning |
|---|---|
action | add or remove. |
blockNumber | Block of the event. |
eventType | The event as the pool names it (mint, burn, add_liquidity, …). |
logIndex | The event's index in the block. |
pricedLegs | The event's token legs that could be priced. |
provider | The liquidity provider the event names, where it names one. |
timestamp | Block time, Unix seconds. |
tokenCount | The number of tokens the event moved. |
txHash | Hash of the transaction, lowercase and 0x-prefixed. |
txIndex | Position of the transaction within its block, from 0. |
unpricedLegs | The event's token legs that could not be priced. |
usdAdded | USD added over the event's legs that could be priced. Absent when none could be priced. |
usdRemoved | USD removed over the event's legs that could be priced. Absent when none could be priced. |
meta is the same envelope on every method — see conventions.
Errors
| Status | When |
|---|---|
| 400 | bad_request: pool is neither an address nor a PoolId (pool_invalid), a block not a non-negative integer (block_number_invalid), fromBlock above toBlock (block_window_inverted), a window over 30 days (window_out_of_range), limit outside 1 to 100, an unknown query parameter; invalid_cursor: the cursor is not valid for this request — restart from the first page |
| 404 | chain_not_supported, or an unknown path |
| 422 | pool_not_covered: a Uniswap v4 pool (protocol_not_covered); block_not_available: toBlock is past the events' reach (details.maxAvailableBlock) |
| 503 | service_unavailable: the events' reach could not be read; retry with backoff; or service_degraded: who is calling could not be established right now; retry after Retry-After. |
Malformed input, unknown parameters and the key check's 401/403/429/503 are the same for every method — see conventions and API keys.
Related pages
- One pool
- Pool reserves
- Pool swaps
- Pool volume
- All API methods — every method on one page
- Conventions — requests, responses, errors and pagination
Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown