Skip to main content
Cancelling stops further sub-orders. Fills that already happened stay. The order’s status becomes cancelled. Cancel all orders also cancels TWAP orders in the markets it covers. This endpoint cancels TWAP orders only. To cancel a TWAP order strategy, use Cancel order strategy.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”symbol”stringrequiredTrading pair symbol of the TWAP orderBTC
”order_id”integerrequired (if no CLOID)TWAP order ID13753364
”client_order_id”Full UUID stringrequired (if no OID)Client-defined order ID of the TWAP orderf47ac10b-58cc-4372-a567-0e02b2c3d479
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
“expiry_window”integeroptionalSignature expiry in milliseconds30000
If you send both order_id and client_order_id, Pacifica uses client_order_id.

Response

  • Status 200: Request accepted
The response is the same when no open TWAP order has that order_id. To confirm the cancel, check order_status in Get TWAP order history by ID.
  • Status 400: Invalid request body
  • Status 422: The engine rejected the request, for example because no open TWAP order has that client_order_id
  • Status 500: Internal server error

Code Example (Python)