Skip to main content
Order lists return a page of results plus a 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.
Both helpers accept the same filters as their list endpoint minus the page cursor, and stop automatically once the last page is reached. Each request still raises a 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 plain for. The async client has its own pair, apaginate_kalshi_orders and apaginate_polymarket_orders, which are async generators:
Passing an 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.