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
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | User’s wallet address | 42trU9A5… |
“signature” | string | required | Cryptographic signature | 5j1Vy9Uq… |
“timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”symbol” | string | required | Trading pair symbol of the TWAP order | BTC |
”order_id” | integer | required (if no CLOID) | TWAP order ID | 13753364 |
”client_order_id” | Full UUID string | required (if no OID) | Client-defined order ID of the TWAP order | f47ac10b-58cc-4372-a567-0e02b2c3d479 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
“expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
order_id and client_order_id, Pacifica uses client_order_id.
Response
- Status 200: Request accepted
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