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

DELETE /twap-orders/{order_id}

Cancels a TWAP order.

DELETE https://api.aevo.xyz/twap-orders/{order_id}

Authentication required. Include your AEVO-KEY and AEVO-SECRET headers. See Authentication.

Example Request

curl --request DELETE \
     --url https://api.aevo.xyz/twap-orders/{order_id} \
     --header 'accept: application/json' \
     --header 'AEVO-KEY: <your-api-key>' \
     --header 'AEVO-SECRET: <your-api-secret>'

Responses

200 — TWAP order cancelled.

Field
Type
Required
Description

order_id

string

Yes

Order ID is the hash of the order payload Example: 0x4c43e0ab72a4edb72dfe4b129148899815d816837b9a7e22d964b884834639f8

executed_amount

string

Yes

Amount executed so far in internal representation (6 decimals) Example: 5000000

slices_executed

string

Yes

Number of slices executed so far Example: 50

400 — Bad request.

Field
Type
Required
Description

error

string

Yes

Error message. Example: ERR_MALFORMED_REQUEST

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?