Trade tape
const url = 'https://api.getchord.xyz/v1/chains/avalanche/token/example/trades?limit=50';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/chains/avalanche/token/example/trades?limit=50'The token’s swaps straight from the raw tape, newest first: venue, side, size, USD, price, block, wallet (null for a router or an unattributed trade, never a guess) and pool. Keyset-paged: pass nextBefore back as before for the next page; nextBefore is null on the last one. The raw tape is short on these chains (see retentionCutoffDay on /status), so paging stops there.
Chain-keyed data for Avalanche C-Chain, Base and BNB Chain, served from Chord’s rollup tables for the chain (every swap summed by hour, token and venue). Only the trade tape, the prints ticker and the wallet read raw rows, scoped to one token or one wallet and bounded.
- Access. No key needed while the chain is public (all three are today). A chain whose tape is off, or that is not public yet, answers
400 UNSUPPORTED_CHAIN(“chain N is not served yet”) unless the request carries anX-API-Key; those answers are sentCache-Control: private. - Ingest floor. Every count, volume and print covers trades at or above the chain’s floor, returned as
ingestFloor. BNB Chain runs at $100 today; Avalanche and Base at 0. - Readiness.
503 NOT_READYuntil the chain’s rollup has run on this deployment;503 CHAIN_DATA_UNAVAILABLEwhen the store cannot be read. Never treat either as “no trades”.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The chain, by key or id: avalanche or 43114, base or 8453, bnb or 56, arbitrum or 42161, ethereum or 1 (case-insensitive). Arc, Robinhood Chain and Monad are refused with 400 UNSUPPORTED_CHAIN and a pointer to their own routes.
EVM address, hex, case-insensitive.
Token address. The zero address means the chain’s wrapped native token (WAVAX, WETH, WBNB).
Query Parameters
Section titled “Query Parameters”Newest rows.
Exclusive cursor: the previous page’s nextBefore (ts:block:logIndex), or a Unix second.
Responses
Section titled “ Responses ”object
EVM address, hex, case-insensitive.
object
Transaction hash.
Whole tokens.
Unix time, seconds, UTC.
EVM address, hex, case-insensitive.
A pool: a 20-byte contract address (V2 / V3) or a 32-byte Uniswap V4 pool id.
Cursor for the next page; null when this page is not full.
The tape’s ingest floor. BNB Chain runs at $100 today; Avalanche and Base at 0.
object
Trades under this USD value (at index time) are not in the index, so every count, volume and candle covers trades at or above it. 0 = every priced trade.
Floors in force over time, oldest first. Empty when the chain was never floored. Raising a floor does not remove older, smaller rows.
object
Floor in force.
Unix time, seconds, UTC.
Unix time, milliseconds — when the server built this answer.
Example
{ "chain": 56, "token": "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c", "trades": [ { "tx": "0x92fdb5120761de73892df232e459c1e93bd540160abf8123235d24b6a7544f65", "logIndex": 116, "block": 125464201, "dex": "pancake_v3", "side": "buy", "tokenAmt": 0.003505439793265937, "usd": 296.55131688178034, "priceUsd": 84597.46404758256, "ts": 1791021425, "wallet": "0x7d63e553f87e560528ecd18e3d801ef4c7144313", "pool": "0x247f51881d1e3ae0f759afb801413a6c948ef442" }, { "tx": "0xbc749bf541475ff782ea186a076614a6634ace0abe6f855d1b4f6f7ff871055f", "logIndex": 138, "block": 125464200, "dex": "pancake_v3", "side": "sell", "tokenAmt": 0.001923013554163473, "usd": 162.647334016205, "priceUsd": 84579.40073488351, "ts": 1791021425, "wallet": "0x939572264f180637d6a0f62aac7df9a4387146bd", "pool": "0x247f51881d1e3ae0f759afb801413a6c948ef442" } ], "nextBefore": "1791021425:125464200:138", "ingestFloor": { "minTradeUsd": 100, "history": [ { "usd": 100, "fromTs": 1790789196 } ] }, "updatedAt": 1791021451693}UNSUPPORTED_CHAIN (unknown chain, a chain with its own routes, or a chain not served to this caller yet), or BAD_ADDRESS / BAD_LIMIT / BAD_BEFORE.
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"}Over the per-minute limit (RATE_LIMIT_EXCEEDED). Read X-RateLimit-Reset and back off.
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"}NOT_READY (the chain’s rollup has not run on this deployment yet) or CHAIN_DATA_UNAVAILABLE (the store could not be read). Retry later; do not treat it as an empty answer.
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"}