Agara

Cancel an order by id

DELETE/order/v1/orders/{order_id}

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.

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

Path Parameters

order_id*string

Order UUID.

Formatuuid

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/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "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"}