Agara

Cancel all resting orders

POST/order/v1/orders/cancel-all

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.

Authorization

bearerAuth
AuthorizationBearer <token>

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

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/problem+json

application/json

curl -X POST "https://example.com/order/v1/orders/cancel-all" \  -H "Content-Type: application/json" \  -d '{    "request_id": "266ea41d-adf5-480b-af50-15b940c2b846"  }'
{  "request_id": "85d7f1de-9f43-4eda-a852-339330b76034",  "status": "COMPLETED",  "cancelled_count": "3",  "command_sequence": "12346"}