Skip to main content
Read every trade your workspace placed or made on an exchange account, how it settled, and the settlement cycle and credit behind each venue account.

At a glance

Paths are under /api/v1/workspaces/{workspaceId}.
Your workspaceId comes from GET /api/v1/me; another answers 404 WORKSPACE_NOT_FOUND. Take a venueAccountId from GET …/venue-enablements. Permissions are in Permissions and Before your first trade.

Trade history

Every trade, filtered and paged.

Settlement

Windows, obligations and movements.

Credit

Credit line and positions.

Trade history

GET /api/v1/workspaces/{workspaceId}/trades lists orders placed through the API or app and trades on your exchange accounts, newest first, for reconciliation and reporting. To follow one order, read its statusUrl (Order status).

Read a page

Filter by kind, status, from and to; page with cursor until nextCursor is null.
The page also carries total (rows matching your filters), limit and nextCursor.
Output on test networks
  • coverage lists each kind whose rows could not be read, with its state. The page is partial, not shorter: read again later; the missing rows are not absent.
  • excludedKinds lists each kind a filter or sort left out, with the filter it could not apply. Drop that filter to see it.

Read one trade

GET /api/v1/workspaces/{workspaceId}/trades/{tradeId} reads one row with its detail; an order’s settlement.status says how it ended.
Output on test networks

Settlement

On some venue accounts, the liquidity provider (LP) and your workspace net what each owes over a settlement window, then settle the result. No read creates a transfer, reservation, approval or instruction to the LP.
GET /api/v1/workspaces/{workspaceId}/settlement/plan is a snapshot of what is due:
  • up to horizonDays ahead, paged with cursor and limit;
  • a summary per account, with its upcoming windows;
  • an unknown deadline stays unknown, never a guess.
A source that could not be read is listed in failedReads, with complete: false: the plan is partial, not “nothing due”.
  • GET …/trades/{tradeId}/settlement: your side of the trade, with its lifecycle stages, transactions and the LP’s response.
  • …/settlement/obligations: the obligations referencing it, each with venue account, window and state.
Take tradeId from the trade history. The LP’s view is a signed-in member read in the app.

Credit and the ledger

…/credit and …/ledger read the account’s credit line and signed positions from the last recorded observation. An unreadable component is unavailable with its code, never zero; readable positions still return when credit does not.

Refusals

A 404 on one trade means the tradeId is unknown, or belongs to another workspace.
Every other code is in Error codes.

Run the full script

Pages your trade history and reads one trade.

Next

Balances and fees

What each account holds, and what you pay.

Order status

Follow one order.