Skip to main content

Why V2?

The V2 wallet trades endpoint is a complete rewrite that addresses several pain points from V1:
  • Lighter responses: baseToken/quoteToken return only essential metadata (address, name, symbol, logo, decimals) instead of 100+ fields with volumes, trending scores, and market stats
  • Built-in pagination: Response includes a pagination object with page, offset, limit, and pageEntries
  • Consistent naming: All fields use camelCase (no more mixed snake_case and camelCase)
  • Consistent params: Same parameter names as other V2 wallet endpoints (blockchains, from/to, order, offset/limit)
  • Token filtering: New tokenAddress parameter to filter trades involving a specific token
  • Date as timestamp: date returns millisecond timestamps (number) instead of ISO strings

Endpoint Changes

Parameter Mapping

Response Field Mapping

Trade object

Pagination

V1 returns all matching trades in a flat array. V2 always returns paginated results with offset-based pagination (same as /wallet/activity and /wallet/positions):
page is computed as Math.floor(offset / limit) + 1. Use offset and limit to paginate.

Migration Examples

Basic query

Filter by token

Date range

Pagination with offset

Reading the response

POST Support (V2 only)

V2 supports POST for complex queries: