Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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-KEY and AEVO-SECRET headers. See Authentication.

Body Parameters

Field
Type
Required
Description

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.

Field
Type
Required
Description

success

boolean

Yes

Request successful if true. Example: true

order_ids

array[string]

No

Order IDs that were cancelled.

400 — Bad request.

Field
Type
Required
Description

error

string

Yes

Error message. Example: BATCH_CANCEL_ORDERS_EXCEEDS_LIMIT (more than 10 order_ids), NO_ORDERS_TO_CANCEL

401 — Unauthorized.

Field
Type
Required
Description

error

string

Yes

Error message. Example: UNAUTHORIZED

429 — Rate limit exceeded.

Field
Type
Required
Description

error

string

Yes

Error message. Example: RATE_LIMIT_EXCEEDED

500 — Internal server error.

Field
Type
Required
Description

error

string

Yes

Error message. Example: INTERNAL_ERROR

Last updated

Was this helpful?