Pagination
List endpoints (GET /v1/copy-trade/configs, GET /v1/sniper/configs) and the orders sub-resource (GET .../orders) share the same cursor pagination shape.
Query parameters
| Param | Type | Notes |
|---|---|---|
limit | integer, 1–100 | Default 20 |
cursor | opaque string | From a previous response’s meta.next_cursor |
cursor is a signed, opaque value bound to your account, the endpoint, and the filters you passed — changing any of those invalidates a cursor from a different call. Treat it as a token, not a page number.
Response
{ "data": [ "..." ], "meta": { "next_cursor": "string | null" } }
next_cursor is null on the last page.
Orders: ascending, not “most recent first”
GET .../orders sorts ascending by (updated_at, order_id) — this is an incremental sync cursor, not a feed. An updated order can appear again later in the listing. This reads current order records, not an event log: multiple changes between reads may collapse into the latest state. next_cursor=null ends that traversal and supplies no resumable tail cursor; start a later traversal again, using an overlapping since window when appropriate and merging by order_id and updated_at. Do not treat pagination as guaranteed delivery of every status transition. There is no floor date — the full order history for a config is reachable by paging from the start.
Other list endpoints
Pagination shapes differ across resources; use each endpoint’s schema:
| Endpoint | Pagination |
|---|---|
GET /v1/balances, GET /v1/positions | Signed cursor in meta.next_cursor; pages are not a frozen snapshot |
GET /v1/orders | Newest first; cursor in data.page.nextCursor (omitted at the end), with data.page.hasMore |
GET /v1/orders/open/{chain} and task .../trades | One-based page and limit; response meta includes page, total_pages, total_records, has_more |
Do not use the task orders endpoint’s ascending order or cursor rules for account history or trade pages.
Auto Sell protection orders
GET /v1/auto-sell-tasks returns the bounded item list without pagination. GET /v1/auto-sell-tasks/{id}/protection-orders uses meta.next_cursor, a default limit of 20 and a maximum of 50 protection groups. Filter with token and status=open|all (default open). The cursor binds the account, item, current covered wallets and filters. Restart pagination after coverage changes; an item covering no wallets returns an empty page.