Liquidity events
const url = 'https://api.getchord.xyz/v1/lp/events?chain=5042&kind=add&limit=40&offset=0';const options = {method: 'GET'};
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.getchord.xyz/v1/lp/events?chain=5042&kind=add&limit=40&offset=0'Adds, removes and fee collects on one token, wallet or pool, newest first, each valued in dollars where the pool has an anchor side. One of token, wallet or pool is required.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Chain id: 5042 Arc · 4663 Robinhood Chain · 143 Monad.
EVM address, hex, case-insensitive.
EVM address, hex, case-insensitive.
A pool: a 20-byte contract address (V2 / V3) or a 32-byte Uniswap V4 pool id.
Responses
Section titled “ Responses ”object
object
Transaction hash.
A pool: a 20-byte contract address (V2 / V3) or a 32-byte Uniswap V4 pool id.
EVM address, hex, case-insensitive.
EVM address, hex, case-insensitive.
EVM address, hex, case-insensitive.
Dollars that entered or left the pool.
False when the event could not be valued (no anchor side).
Unix time, seconds, UTC.
EVM address, hex, case-insensitive.
Position NFT id, for managed positions.
Unix time, milliseconds — when the server built this answer.
Example
{ "chain": 5042, "events": [ { "tx": "0x74acfa695f6ea11770a2356a49b750c9c5e0685a8ee106ebfae67ccd049d4ba6", "logIndex": 20, "pool": "0xf53f02d9041d00bbd92235b4c902b9f350c554a8ed2dc64fa0a4585aac413f09", "dex": "uniswap_v4", "kind": "remove", "wallet": "0xc85d3ed2dfa128888e658e3a947f24bfa96db654", "token": "0x8faae5592b9acc27a79fca745c6b872adf514a5d", "tokenAmt": 0, "anchor": "0x3600000000000000000000000000000000000000", "anchorAmt": 90.769723, "usd": 90.769723, "priced": true, "tickLower": 352440, "tickUpper": 354519, "block": 21802531, "ts": 1789888952 }, { "tx": "0x74acfa695f6ea11770a2356a49b750c9c5e0685a8ee106ebfae67ccd049d4ba6", "logIndex": 18, "pool": "0xf53f02d9041d00bbd92235b4c902b9f350c554a8ed2dc64fa0a4585aac413f09", "dex": "uniswap_v4", "kind": "remove", "wallet": "0xc85d3ed2dfa128888e658e3a947f24bfa96db654", "token": "0x8faae5592b9acc27a79fca745c6b872adf514a5d", "tokenAmt": 0, "anchor": "0x3600000000000000000000000000000000000000", "anchorAmt": 72.615778, "usd": 72.615778, "priced": true, "tickLower": 350361, "tickUpper": 352440, "block": 21802531, "ts": 1789888952 } ], "limit": 2, "offset": 0, "updatedAt": 1789891870679}Invalid parameters — error names the check that failed (INVALID_PARAMS, BAD_ADDRESS, BAD_LIMIT, BAD_HOURS, …).
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}