At a glance
Paths are under/api/v1/workspaces/{workspaceId}.
What each read needs
What each read needs
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 bykind, status, from and to; page with cursor until nextCursor is null.
Fields and parameters
Fields and parameters
The page also carries
total (rows matching your filters), limit and nextCursor.Request and output
Request and output
Output on test networks
The page is partial
The page is partial
coveragelists each kind whose rows could not be read, with itsstate. The page is partial, not shorter: read again later; the missing rows are not absent.excludedKindslists each kind a filter or sort left out, with thefilterit 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.
Settlement fields, request and output
Settlement fields, request and output
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.Every settlement read
Every settlement read
The settlement plan
The settlement plan
GET /api/v1/workspaces/{workspaceId}/settlement/plan is a snapshot of what is due:- up to
horizonDaysahead, paged withcursorandlimit; - a summary per account, with its upcoming
windows; - an unknown deadline stays unknown, never a guess.
failedReads, with complete: false: the plan is partial, not “nothing due”.One trade's settlement
One trade's settlement
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.
tradeId from the trade history. The LP’s view is a signed-in member read in the app.Windows, obligations, movements and schedules
Windows, obligations, movements and schedules
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.
What each read answers
What each read answers
Refusals
Trade history
Trade history
A
404 on one trade means the tradeId is unknown, or belongs to another workspace.Settlement and credit
Settlement and credit
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.