Docs/Core concepts/Pagination

Pagination

Cursor for trades, offset for lists.

Two pagination styles, by endpoint shape:

Cursor (trades)

Trades are keyset-paginated newest-first. Each response returns a nextCursor; pass it as ?cursor= for the next page. A null cursor means the end.

curl "https://www.quanaris.com/v1/token/C7heQqfNzdMbUFQwcHkL9FvdwsFsDRBnfwZDDyWYCLTZ/trades?limit=50"
# → { "trades": [...], "nextCursor": "1780520400000_84213" }
curl "https://www.quanaris.com/v1/token/C7heQqfNzdMbUFQwcHkL9FvdwsFsDRBnfwZDDyWYCLTZ/trades?limit=50&cursor=1780520400000_84213"

Offset (lists)

Token list uses limit + offset and returns total (the full filtered count, even on an overshot page) so you can compute page counts.