Cancel a conditional order
tossinvest_cancel_conditional_orderCancel a standing conditional order so it stops watching the price. The watcher is removed only; any real order already placed stays untouched.
Instructions
Cancel a standing conditional order so it stops watching the price. This cancels a REAL standing order — confirm with the user first.
Args:
conditional_order_id (string): the conditional order to cancel.
account_seq (number, optional): resolved automatically for single-account credentials.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { accountSeq, conditionalOrderId, operation: 'canceled' }.
This only removes the watcher. Any real order already placed by a fired condition is untouched — cancel that separately with tossinvest_cancel_order.
Errors: 404 conditional-order-not-found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_seq | No | accountSeq of the account to act on (the `X-Tossinvest-Account` header). Optional: falls back to TOSSINVEST_ACCOUNT_SEQ, then to the sole account on the credentials. Get valid values from tossinvest_list_accounts. | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
| conditional_order_id | Yes | Identifier of the conditional order to cancel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| operation | Yes | created, modified or canceled | |
| accountSeq | Yes | ||
| clientOrderId | No | ||
| conditionalOrderId | Yes | Identifier to use from now on — a modify issues a NEW id and invalidates the old one |