Liquidity flow for a token
const url = 'https://api.getchord.xyz/v1/lp/token/example?chain=5042&hours=24';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/token/example?chain=5042&hours=24'Adds, removes and net dollars over the window, one-sided (token-only) events counted but not valued, just-in-time liquidity (same-transaction add and remove) called out so the totals read right, the top providers and the pools by net flow.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”EVM address, hex, case-insensitive.
Query Parameters
Section titled “Query Parameters”Chain id: 5042 Arc · 4663 Robinhood Chain · 143 Monad.
Responses
Section titled “ Responses ”object
EVM address, hex, case-insensitive.
object
EVM address, hex, case-insensitive.
Unix time, seconds, UTC.
object
A pool: a 20-byte contract address (V2 / V3) or a 32-byte Uniswap V4 pool id.
Unix time, milliseconds — when the server built this answer.
Example
{ "chain": 5042, "token": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0", "hours": 24, "adds": 200, "addUsd": 274228.1437317083, "removes": 176, "removeUsd": 2291418.4063887238, "netUsd": -2017190.2626570156, "tokenOnlyAdds": 5, "tokenOnlyRemoves": 30, "jitTxs": 18, "jitUsd": 39153.40135616365, "providers": 51, "top": [ { "wallet": "0xa77401a1640e4f090fd5d08b7350b59d6a99b0fd", "netUsd": -2064877.6495731266, "addedUsd": 0, "removedUsd": 2063818.8216671266, "events": 2, "lastTs": 1789845091 }, { "wallet": "0x08d0d1d9d58675fea6e36670d85a9e8dad89f465", "netUsd": 21439.05777238525, "addedUsd": 21439.05777238525, "removedUsd": 0, "events": 1, "lastTs": 1789817213 } ], "pools": [ { "pool": "0x82916bee18fcef517b26c72d7cb5f13694e1db41", "dex": "uniswap_v3", "netUsd": -2065710.8817895816, "events": 88 }, { "pool": "0xd945caee4635bcd7fb8a9fa74dc1d0c4c1472782", "dex": "slipstream_fork", "netUsd": 44581.441725988414, "events": 282 } ], "updatedAt": 1789891863259}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"}