v24

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-011332539.2 KB
Trade Analytics

getSwapTrades

Get the list of completed swap trades. Returns a maximum of 200 trades per request. Visit here for more details about how the API works.

get/trade-analytics/swap

Query parameters

cursorstring

A pagination cursor used to fetch the next page of trades. It should be set to null for the initial request; otherwise, it should be the value of nextCursor that is returned from getSwapTrades or getGaslessTrades calls.

startTimestampinteger

Unix timestamp in seconds, specifying the starting point of the time range filter. Only trades completed on or after this timestamp will be included in the response.

endTimestampinteger

Unix timestamp in seconds, specifying the end point of the time range filter. Only trades completed on or before this timestamp will be included in the response.

Headers

0x-api-keystring required

Visit dashboard.0x.org to get your API Key

0x-versionstring required
Example:v2

API version

Response

Successful response

nextCursorstring nullable required

The cursor to fetch the next page of trades. If not present, there are no more trades to fetch for given parameters.

zidstring required

The unique ZeroEx identifier of the request