Skip to main content
Carrier: POST /v1/exchange (encrypted binary). Permission: Owner or scoped TRADE agent. Place a bounded order and follow its execution. The same command is available over WebSocket.
Configure client and the example inputs using SDK integration. Examples show typed SDK values, not a plaintext HTTP JSON body.

Request fields

The client supplies the configured domain, account, policy, signer and verified session binding, and signs the canonical envelope.
Uint8Array (32 bytes)
required
Nonzero private request ID. Retain it for an exact retry; use a distinct ID for a different intent.
bigint (u64)
required
Current account authority epoch.
bigint (u64)
required
Expiry timestamp in milliseconds, within the verified channel and configured authentication limits; not a validity duration.
"order"
required
Command discriminator.
Uint8Array (32 bytes)
required
Configured market ID. Its metadata and the approved policy determine the trading units; see markets.
bigint (i64)
required
Nonzero: positive buy, negative sell.
bigint (u64)
required
Positive inclusive lower execution-price bound, in ticks.
bigint (u64)
required
Positive inclusive upper execution-price bound, in ticks; must be at least minimum.
bigint (i128)
required
Nonnegative maximum quote-atom fee per lot, not percentage or total fee. abs(lots) × fee must fit i128.
"GTC" | "ALO" | "IOC"
required
Good-til-cancelled, add-liquidity-only or bounded immediate-or-cancel.
boolean
required
Must not open/reverse the private customer’s position.
bigint (u64)
required
Latest permitted dispatch time in milliseconds, unchanged on retry. It does not automatically cancel an already dispatched resting order.

Response fields

The result uses the shared receipt fields. The fields below are most relevant to this method.
"receipt"
required
Response discriminator.
Uint8Array (32 bytes)
required
ID of this recorded command, matching the request’s id.
Outcome
required
rejected, accepted, dispatched, acknowledged, partial, complete or unknown. See lifecycle.
bigint (i64)
required
Actual attributed signed lots, not requested quantity.
bigint (i128)
required
Total authorized trading-fee cap: abs(lots) × fee. Actual charged fees appear in fills.
boolean
required
Whether an action or signature may have reached external execution. This is not confirmation of a fill or payment.

Behavior

The receipt records the declared total fee cap, abs(lots) × fee, and actual signed filled lots. Charged trading fees appear in fills. Admission checks margin, pending outcomes and available pool resources before reserving funds. Agent size, fee and accepted-order limits also apply. IOC may fill partially or not at all. goodUntil is the latest permitted dispatch time. It does not cancel an already dispatched GTC or ALO order when that time arrives. Use cancel for a resting order; its reservations remain until execution is reconciled.

Errors and reconciliation

See errors for response codes and lifecycle for delivery failures, receipts and retries. Keep the original operation ID when reconciling an uncertain result.