Pagination

How to increase API data limit for centralized exchanges using pagination.

Get /trades?limit=500

Abyiss implements cursor pagination for all REST requests that return arrays of data. This includes endpoints such as /trades, /aggregates, and /orders. By default, these endpoints return the latest items. To retrieve more results per page, you can specify the limit parameter.

The limit parameter determines the number of results to be included in each page of the response. It's important to note that the maximum pagination limit may vary depending on the specific exchange. Some exchanges may support higher pagination limits than others.

Example

To fetch a page of trades with a limit of 500 results, you can use the following API request:

GET /trades?limit=500

Example URL:

https://api.abyiss.com/v2/cex/coinbasepro/BTC-USD/trades?limit=500&apiKey=YOUR_API_KEY

Parameters

ParameterDefaultDescription

limit

200

Number of results per request. Maximum 50,000. (default 200)

Last updated