Trades
List trades
List individual swap trades for a pool or a token, with time filters and cursor pagination.
GET
Returns individual trades (swaps), newest first by default. Each trade is oriented to one token: the
token* fields describe that token, and the *Vs fields describe the other side of the pair.
Pool or token
address can be a pool or a token:
- A known token with no pools returns
200with an empty array. - An address that is neither a known pool nor a known token returns
404(Token or pool not found). - Only regular trades are returned. Swaps classified as MEV, sandwiched, liquidity adds/removals or launchpad bonding are excluded.
Buy and sell
type is from the point of view of token:
buy:tokenleft the pool, so the trader receivedtokenand paidtokenVs.sell:tokenentered the pool, so the trader paidtokenand receivedtokenVs.
buy when you query by one token and a sell when you query by the other token.
Query parameters
Pool address (
0x + 40 hex), 32-byte pool id (0x + 64 hex), or token address (0x + 40 hex). Case-insensitive.Chain id, as a number (
1) or with the evm: prefix (evm:1). See Chains and identifiers.Only trades at or after this time, Unix epoch milliseconds (inclusive). Must be less than or equal to
to; from equal to to is allowed.Opaque pagination cursor, at most 128 characters. Pass the
cursor of the last trade from the previous page. See Pagination.Pagination
Trades are sorted by time, then by position in the chain (block, transaction, log), then by trade id, so the order is stable. Every trade carries acursor that marks its position.
To get the next page:
- Take the
cursorof the last trade in the current page. - Repeat the same query (
address,chain,order,limit,from,to) and addcursor=<that value>. - The next page starts strictly after that trade, in the direction of
order. - Stop when a page has fewer than
limittrades or is empty.
hasMore or nextCursor field; the response is a plain array.
- Treat the cursor as opaque: don’t build or parse it.
- The cursor is a position, not a saved query. It doesn’t remember
order,addressor the time window, so always resend the same parameters with it. Sending it with the oppositeorderreads in the other direction from that trade. fromandtostill apply when you use a cursor, so you can paginate inside a time window.- For token queries, pagination is consistent across both pools.
Response
tokenNativePrice uses the native coin’s price at the time of each trade: the trade’s own price when one side is the native or wrapped native coin, otherwise the latest reference native-coin price at or before the trade.