Skip to main content

Pagination

List APIs page with nextToken and maxResults:
  • Across pages of one query, send the same parameters except nextToken and sign. Different parameters start a new query.
  • On the first page, send an empty nextToken. On each following page, send the nextToken from the previous response.
  • The query ends when a response returns no data and an empty nextToken.

Example

For List bet records with 12000 records in total, fetching 5000 at a time:

Polling bet records continuously

When you poll List bet records or List historical bet records over consecutive time ranges for records and reconciliation, make each query’s start time equal to the previous query’s end time so no records are missed. Polling 1 minute at a time:
With this approach, bets within less than 1 millisecond of the boundary between two queries can be returned twice. Remove duplicates on your side.