TWAP Orders

Cancel TWAP Order

Cancels a running TWAP order. Child orders already placed are not affected. For how TWAP execution works, see TWAP orders.

delete/v1/perps/twap/order/{orderID}

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/perps/twap/order/{orderID}
  • Auth
    • HTTP bearer
    • or API key in header ONDO-KEY-ID

Path parameters

orderIDstring required
Example:twap_70a37d8f972f2494837f9dba8364cbb4

TWAP order ID (prefixed with twap_)

Response

TWAP order cancelled

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

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

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 2 revisions of this API.