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.
Headers
0x-api-key
Visit dashboard.0x.org to get your API Key
0x-version
API version
Query parameters
cursor
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.
startTimestamp
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.
endTimestamp
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.
Response
Successful response
nextCursor
The cursor to fetch the next page of trades. If not present, there are no more trades to fetch for given parameters.
trades
zid
The unique ZeroEx identifier of the request