Skip to content

Pagination

Orders and executions come in pages, oldest first, with two query parameters:

Parameter Meaning
limit rows per page: 1 to 500, 100 when absent
after_seq only what came after this sequence number: 0 (or absent) for the first page, then the next_after_seq of the previous page

Each page answers next_after_seq: pass it as after_seq for the next page; null on the last page.

Terminal window
curl "$API/accounts/$ACCOUNT/executions?limit=500&after_seq=0" -H "Authorization: Bearer $PP_KEY"
  • A page never splits the rows of one event of the account (one order’s fills recorded together): it may then hold a few more rows than limit.
  • GET /accounts/{id}/orders takes status=working (open orders) or status=final (filled, canceled or rejected); without it, both. client_order_id= returns that one order.
  • GET /accounts/{id}/executions takes symbol= for one market.
  • Every read answers as_of_seq: the last sequence number of the account it accounts for. The account stream carries the same numbers (seq), so a client can read a page, then follow the stream from there.