Paginated historical orders for an account from PostgreSQL within a date range (up to 90 days). Always reads from the database; filtering excludes superseded and failed rows. Optional exclude_today avoids overlap with the active-orders v2 endpoint.
Use Case: Fill gaps before today’s session or export fills for reporting without walking the live cache cursor.
Documentation Index
Fetch the complete documentation index at: https://finance.dev/llms.txt
Use this file to discover all available pages before exploring further.
from (RFC 3339 with timezone). If you omit to, the service uses the current time truncated to the minute (UTC) and caps the span at 90 days from from.
cursor / nextCursor contract as List active orders (v2): start with cursor=0, then pass the last nextCursor until it returns 0. Sorting is by order_created_at; set order_by to asc or desc (default desc).
orders plus nextCursor. Each order matches the v2 domain shape so it aligns with WebSocket and cache-backed reads.
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Account ID
Inclusive lower bound on order_created_at. RFC 3339 with timezone (for example 2026-04-01T00:00:00Z).
Inclusive upper bound. Defaults to current time truncated to the minute (UTC). Combined range from from is capped at 90 days.
Sort direction by order_created_at.
asc, desc When true, caps to at just before midnight ET so intraday activity is omitted from this history response.
Page size. Default 50; server maximum 500.
1 <= x <= 500Opaque pagination cursor for DB keyset walk. Pass 0 for the first page.
Page of historical orders