Cancel an order by hash
/order/v1/orders/by-hash/{hash}Required token scope: orders:cancel.
Cancel the unfilled remainder of this order. No new order signature or request body is required. Completed fills remain valid. Retry an uncertain cancellation using the same hash. If cancellation returns NOT_FOUND, look up the hash and cancel using the returned order ID when available.
After ORDER_NOT_OPEN or NOT_FOUND, read the final order state. For PLACE_PENDING or PLACE_OUTCOME_UNKNOWN, resolve the original placement before retrying cancellation. See cancellation strategies.
Authorization
bearerAuth Use an agt_ API token with the scope listed on the operation, or a supported browser access token. HTTP authentication is separate from the EIP-712 order signature.
In: header
Path Parameters
Full 0x-prefixed EIP-712 signed order hash.
^0x[0-9a-fA-F]{64}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/problem+json
application/json
curl -X DELETE "https://example.com/order/v1/orders/by-hash/string"{ "order_id": "f6179e34-1b64-5a10-a662-32f25759da1a", "source": "AGARA", "status": "CANCELLED", "pending_operation": "NONE", "as_of": "2026-11-04T12:00:00Z", "engine_reference": "12345", "remaining_engine_size": "0"}Cancel all resting orders POST
Required token scope: orders:cancel. Cancel the authenticated wallet’s resting orders across markets. Send a fresh nonzero request_id for a new cancellation; reuse it to resolve the same action after a timeout. Maximum body: 1 KiB. HTTP 200 with COMPLETED confirms cancellation of orders still resting when processed. An order confirmed open before a new cancel-all has its still-resting remainder cancelled; earlier fills remain valid. A placement still being validated can arrive afterward, even if its HTTP request was sent first. Stop submissions, resolve pending placements, and check for late accepted orders. Reusing an earlier request_id does not perform a new sweep. See the [cancellation boundary](/best-practices/order-management#cancellation-boundary).
Cancel an order by id DELETE
Required token scope: orders:cancel. Cancel the unfilled remainder of this order. No new order signature or request body is required. Completed fills remain valid. Retry an uncertain cancellation using the same order_id. After ORDER_NOT_OPEN or NOT_FOUND, read the final order state. For PLACE_PENDING or PLACE_OUTCOME_UNKNOWN, resolve the original placement before retrying cancellation. See [cancellation strategies](/best-practices/order-management#cancellation-strategies).