Page number and size
Many node and indexer list routes acceptpageNumber (zero-based) and pageSize as query parameters. Defaults are typically pageNumber=0 and pageSize=2000; the indexer caps several routes at 2000.
- Start at
pageNumber=0with a reasonablepageSize. - If the response is empty or shorter than
pageSize, you have the last page. - Otherwise request
pageNumber + 1.
Time range and limit
Candles, order history, and the default trades mode usestartTime / endTime (milliseconds) and limit.
endTimedefaults to now;startTimedefaults to 24 hours beforeendTime.limitdefaults to 500 (max 1000 for these routes).
from / to / interval. from=0 and to=0 mean all available history through the latest snapshot.
Cursor (trades)
GET /indexer/trades also supports count (1–100) with an optional cursor for latest-fills pagination. count cannot be combined with startTime, endTime, or limit. The response may include nextCursor for the next page.
Client tips
- Cap page size and time range to avoid timeouts and large payloads.
- Do not assume global ordering unless the endpoint documentation states a sort order.