Who added and removed liquidity in a DEX pool
get_pool_liquidity_eventsThe liquidity events of one DEX pool inside a block window, newest first — the block, time and transaction, the provider the event names, action (add or remove) and the event as the pool names it, and the USD added or removed over the token legs that could be priced (pricedLegs / unpricedLegs; absent when none could). The window is fromBlock to toBlock, at most 216 000 blocks (about 30 days), by default the 7 days up to meta.asOfBlock; a wider one is refused with the bound, never narrowed, and a toBlock past meta.asOfBlock is refused (block_not_available). Uniswap v4 pools are not covered and are refused (pool_not_covered) rather than answered empty. Use it to see who added or removed liquidity in a pool. Not for daily totals: use get_pool_liquidity_flow. Not for every token leg of one transaction's events: use get_transaction_liquidity_events. Not for the largest removals across all pools: use get_largest_liquidity_removals.
Arguments: pool; optional fromBlock, toBlock, limit (default 10, at most 100), cursor. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Paged: pass data.nextCursor back as cursor, with the same other arguments, until it is absent — no nextCursor means the list is complete, even when the page is exactly limit long. Freshness: the timeline up to meta.asOfBlock, the highest block it covers. meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.
Minimum plan: Investigation. Rate class: standard. Documentation: https://docs.tracefast.xyz/api/pool-liquidity-events
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pool": "<pool>"
},
"name": "get_pool_liquidity_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | 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. | |
| limit | No | How many rows to return: 1 to 100, default 10. A larger value is refused with `bad_request`, `details.reason` `limit_out_of_range` and `details.maxLimit`, never cut. | |
| cursor | No | `data.nextCursor` of this tool's previous answer, passed back unchanged with the same other arguments. Opaque; absent on the first call. | |
| toBlock | No | The window's last block. Default: the last block the liquidity events have reached (`meta.asOfBlock`). | |
| chain_id | No | Chain id. Only 1 (Ethereum mainnet) is served; the default. | |
| fromBlock | No | The window's first block. Default: 7 days of blocks below `toBlock`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||