Skip to main content
DELETE
/
v1
/
perps
/
twap
/
order
/
{orderID}
Cancel TWAP Order
curl --request DELETE \
  --url https://api.ondoperps.xyz/v1/perps/twap/order/{orderID} \
  --header 'Authorization: Bearer <token>'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orderID
string
required

TWAP order ID (prefixed with twap_)

Example:

"twap_70a37d8f972f2494837f9dba8364cbb4"

Response

TWAP order cancelled

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""