OpenXSwitch - Pagination
OpenXSwitch API uses Pagination for all REST requests which return arrays.
Pagination allows for fetching results in a structured way, especially suited for real-time data. Endpoints like /api/deposit/list
, /api/withdraw/list
, and /api/orders/list
return the latest items by default. To retrieve additional results, users should specify the pageNo
and pageLimit
in subsequent requests to fetch the next set of data based on the data previously returned.
The base endpoint is: https://api.openxswitch.com
Example
GET /api/sub-wallet/list?pageNo=1&pageLimit=20
{
"pageNo": 1,
"pageLimit": 20,
"totalPage": 1,
"data":
}
PARAMETERS
Parameter | Default | Description |
---|---|---|
pageNo | 1 | The current page of the request. |
pageLimit | 20 | The number of items per page (pagination size). |