Skip to main content
Carrier: POST /v1/exchange (encrypted binary). Permission: Owner, or CANCEL agent for its own order. Cancel an order and account for concurrent fills. 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
ID for this cancellation request, distinct from the original order ID. Retain it for an exact retry.
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.
"cancel"
required
Command discriminator.
Uint8Array (32 bytes)
required
Original Cinder order request ID. It is not a venue order ID or this cancellation request ID.
Uint8Array (32 bytes)
required
Stable cancellation-attempt ID for the target order. Preserve it on retry; it is a different identifier role from the API request ID.
bigint (u64)
required
Financial cancellation deadline in milliseconds.

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 signed fills on the target order, not quantity cancelled or the original requested size.
boolean
required
Whether an action or signature may have reached external execution. This is not confirmation of a fill or payment.

Behavior

Cancellation IDs

Keep all three values, and the exact deadline, unchanged when resubmitting the same cancellation. Changing them describes a different intent or attempt.

Cancellation and late fills

An order that has not reached external execution can release its local reservation. An exposed order requires cancellation and execution-history reconciliation. A cancellation acknowledgement does not prove that no late fill can arrive. Query this cancellation’s id for its progress and the original order’s target for its final result. There is no raw venue cancel-all command.

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.