DELETE /orders
Cancels up to 10 of the account's orders by order ID in one request.
DELETE https://api.aevo.xyz/orders
Authentication required. Include your
AEVO-KEYandAEVO-SECRETheaders. See Authentication.
Body Parameters
order_ids
array[string]
Yes
Order IDs to cancel. At most 10 per request. Orders that don't belong to the authenticated account are not cancelled. Example: ["0x4c43e0ab72a4edb72dfe4b129148899815d816837b9a7e22d964b884834639f8"]
instrument_type
string
No
Only cancel orders of this instrument type. Allowed values: OPTION, PERPETUAL, SPOT.
Example Request
curl --request DELETE \
--url https://api.aevo.xyz/orders \
--header 'accept: application/json' \
--header 'AEVO-KEY: <your-api-key>' \
--header 'AEVO-SECRET: <your-api-secret>' \
--header 'content-type: application/json' \
--data '{"order_ids": ["0x4c43e0ab72a4edb72dfe4b129148899815d816837b9a7e22d964b884834639f8"]}'Responses
200 — Cancellation status.
success
boolean
Yes
Request successful if true. Example: true
order_ids
array[string]
No
Order IDs that were cancelled.
400 — Bad request.
error
string
Yes
Error message. Example: BATCH_CANCEL_ORDERS_EXCEEDS_LIMIT (more than 10 order_ids), NO_ORDERS_TO_CANCEL
401 — Unauthorized.
error
string
Yes
Error message. Example: UNAUTHORIZED
429 — Rate limit exceeded.
error
string
Yes
Error message. Example: RATE_LIMIT_EXCEEDED
500 — Internal server error.
error
string
Yes
Error message. Example: INTERNAL_ERROR
Last updated
Was this helpful?

