Skip to content

Trade tape

GET
/chains/{chain}/token/{address}/trades
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 an X-API-Key; those answers are sent Cache-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_READY until the chain’s rollup has run on this deployment; 503 CHAIN_DATA_UNAVAILABLE when the store cannot be read. Never treat either as “no trades”.
chain
required
string
Allowed values: avalanche base bnb arbitrum ethereum 43114 8453 56 42161 1

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.

address
required

EVM address, hex, case-insensitive.

string
/^0x[a-fA-F0-9]{40}$/

Token address. The zero address means the chain’s wrapped native token (WAVAX, WETH, WBNB).

limit
integer
default: 50 >= 1 <= 200

Newest rows.

before
string
/^\d{1,12}(:\d{1,15}:\d{1,9})?$/

Exclusive cursor: the previous page’s nextBefore (ts:block:logIndex), or a Unix second.

Media typeapplication/json
object
chain
integer
token

EVM address, hex, case-insensitive.

string
/^0x[a-fA-F0-9]{40}$/
trades
Array<object>
object
tx

Transaction hash.

string
/^0x[a-fA-F0-9]{64}$/
logIndex
integer
block
integer
dex
string
side
string
Allowed values: buy sell
tokenAmt

Whole tokens.

number
usd
number
priceUsd
number
ts

Unix time, seconds, UTC.

integer
wallet

EVM address, hex, case-insensitive.

string | null
/^0x[a-fA-F0-9]{40}$/
pool

A pool: a 20-byte contract address (V2 / V3) or a 32-byte Uniswap V4 pool id.

string
/^0x([a-fA-F0-9]{40}|[a-fA-F0-9]{64})$/
nextBefore

Cursor for the next page; null when this page is not full.

string | null
ingestFloor

The tape’s ingest floor. BNB Chain runs at $100 today; Avalanche and Base at 0.

object
minTradeUsd

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.

number
history

Floors in force over time, oldest first. Empty when the chain was never floored. Raising a floor does not remove older, smaller rows.

Array<object>
object
usd

Floor in force.

number
fromTs

Unix time, seconds, UTC.

integer
updatedAt

Unix time, milliseconds — when the server built this answer.

integer
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.

Media typeapplication/json

Every non-2xx body.

object
error
required

Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.

string
message

For humans.

string
statusCode

HTTP status, when included.

integer
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.

Media typeapplication/json

Every non-2xx body.

object
error
required

Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.

string
message

For humans.

string
statusCode

HTTP status, when included.

integer
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.

Media typeapplication/json

Every non-2xx body.

object
error
required

Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.

string
message

For humans.

string
statusCode

HTTP status, when included.

integer
Example
{
"error": "INVALID_PARAMS",
"message": "amount must be an integer string in the token's smallest unit"
}