Cancel a resting order by ID.
DELETE/v1/orders/:order_id
Cancels the named order. The order must belong to the calling account; cancelling someone else's order returns 403. Idempotent — cancelling an already-cancelled or already-filled order returns 404.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 504
Cancellation processed.
Request was malformed or failed validation. The error.code field carries the
machine-readable reason; common values include invalid_request, invalid_json,
invalid_order_id, invalid_instrument_id, invalid_credential_id,
invalid_resolution, and operation-specific codes documented per endpoint.
Missing or invalid Authorization header.
Account state forbids cancellation, or the order belongs to another account.
Error codes — account_not_active, cancel_rejected with reason wrong_account.
Order not found (unknown ID, already cancelled, or already filled).
Engine did not acknowledge within deadline.