A Promise to a response that can be awaited like normal,
but at the risk of not getting all results due to API limits.
In which case a nextCursor field is returned to request the next page.
Helper methods are provided to abstract away the pagination.
Example using client.timeseries.list with a per-request limit of 1000:
A Promise to a response that can be awaited like normal, but at the risk of not getting all results due to API limits. In which case a nextCursor field is returned to request the next page. Helper methods are provided to abstract away the pagination.
Example using
client.timeseries.listwith a per-request limit of 1000:You can get up to 1000 elements with normal await:
You can use
autoPagingToArrayto get more items than the per-request limit. E.g. an array of up to 5000 items:You may also specify
{ limit: Infinity }to get all results.You can also iterate through all items (unless you break out of the loop) like so: