nextPageToken cursor. The
pagination helpers follow that cursor for you and yield individual orders, so
you can iterate the full history without handling tokens yourself.
RequestError on failure. If you need raw pages or the
nextPageToken directly, call the list method instead.
Async in Python
The synchronous helpers are generators, so they work with a plainfor. The
async client has its own pair, apaginate_kalshi_orders and
apaginate_polymarket_orders, which are async generators:
AsyncParlayX to the synchronous helper does not work, and passing a
ParlayX to the async one does not either. The four names exist so the pairing
is explicit rather than inferred at runtime.
What is not cursored
Positions and fills return their full result in one call, so they have no helper:listPositions() and getOrderFills(orderId) in TypeScript,
list_positions() and get_order_fills(order_id) in Python.