Endpoint
Request Body
| Parameter | Type | Description |
|---|---|---|
action* | object | See below |
action.type* | string | Must be "twapCancel" |
action.twapOrderId* | string | TWAP order id to cancel |
nonce* | number | Replay-protection nonce |
expiresAfter | number | Optional expiration timestamp in ms |
signature* | object | EIP-712 signature |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
response.data.status | "canceled" | "failed" | canceled means the cancel request was committed |
response.data.twapOrderId | string | undefined | TWAP id associated with the cancel result |
response.data.error | string | undefined | Failure reason when the cancel request is rejected after parsing |
Example Request
Notes
- Only TWAPs in
pendingoractivestatus are cancelable. - Ownership is enforced: the authenticated signer must resolve to the TWAP owner. - A successful cancel returnsstatus: "canceled"immediately; subsequent reads show the TWAP as terminal withcanceledAtpopulated.
