Pagination
How to increase API data limit for centralized exchanges using pagination.
Last updated
How to increase API data limit for centralized exchanges using pagination.
Last updated
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.
To fetch a page of trades with a limit of 500 results, you can use the following API request:
Example URL:
https://api.abyiss.com/v2/cex/coinbasepro/BTC-USD/trades?limit=500&apiKey=YOUR_API_KEY
Parameter | Default | Description |
---|---|---|
limit
200
Number of results per request. Maximum 50,000. (default 200)