/trades
, /fills
, /orders
, return the latest items by default. To retrieve more results subsequent requests should specify which direction to paginate based on the data previously returned.
before
and after
cursors are available via response headers CB-BEFORE
and CB-AFTER
. Your requests should use these cursor values when making requests for pages after the initial request.
Parameter | Default | Description |
---|---|---|
before | Request page before (newer) this pagination id | |
after | Request page after (older) this pagination id | |
limit | 1000 | Number of results per request. Maximum 1000 (default 1000) |
GET /orders?before=2&limit=30
before
cursor references the first item in a results page and the after
cursor references the last item in a set of results.
before
query parameter. Your initial request can omit this parameter to get the default first page.
The response contains a CB-BEFORE
header which returns the cursor id to use in your next request for the page before the current one. The page before is a newer page and not one that happened before in chronological time.
CB-AFTER
header which returns the cursor id to use in your next request for the page after this one. The page after is an older page and not one that happened after this one in chronological time.