Why V2?
The V2 wallet trades endpoint is a complete rewrite that addresses several pain points from V1:- Lighter responses:
baseToken/quoteTokenreturn 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
paginationobject withpage,offset,limit, andpageEntries - Consistent naming: All fields use camelCase (no more mixed
snake_caseandcamelCase) - Consistent params: Same parameter names as other V2 wallet endpoints (
blockchains,from/to,order,offset/limit) - Token filtering: New
tokenAddressparameter to filter trades involving a specific token - Date as timestamp:
datereturns 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.