Get completed intents
Lists intents that have filled, been cancelled or been rejected, for the caller’s organization. Live intents are served by the intents service at /v1/intents; this endpoint serves the record of finished ones. The record is kept for six years, and how much of it a caller may read is set by their plan: start is raised to that window when it reaches back past it, and omitting start reads from the window rather than from the beginning. The anthid-retention-days response header carries the window applied. Returns one row per action by default so an amended order shows what it was amended from; pass terminal_only=true for one row per intent.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Trading account ID. Omitted, the read covers every account in the organization.
Required. Which environment the read covers. Resolved to the organization's accounts in that environment, including disabled and deleted ones, since the ledger stores no environment of its own. Rejected with 400 when it disagrees with the account named alongside it.
paper, live One intent, by id. Returns its whole action chain.
Filter by symbol. Normalized to uppercase.
How the intent ended: FILLED, CANCELLED or REJECTED
Inclusive range start, against the sort column when that is a clock and terminal_at otherwise
Exclusive range end, bounding the same column as start
One row per intent instead of one per action
Maximum rows; defaults to 100 and is capped at 1000
x >= 0Sort field; defaults to terminal_at
Sortable columns on completed intents.
Deliberately short. Every column here is either in the table's sort key or cheap to scan, and a sort offered over a six year table is a promise about cost as much as about ordering.
terminal_at, created_at, received_at, symbol Sort direction; defaults to Desc
Asc, Desc Opaque keyset cursor from a previous response. Only valid for the sort_by it was issued with.