Prepare order cancellation
toss_prepare_order_cancelPreview cancellation of an open order without affecting filled shares. Validates the request, returns a confirmation token to submit after explicit user approval.
Instructions
Previews the withdrawal of an EXISTING open regular order so that none of its remaining quantity can fill. Already-executed shares are unaffected — cancelling never reverses a fill. Find the orderId with toss_get_orders (status 'OPEN'). Use toss_prepare_conditional_order_cancel for conditional orders. Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Identifier of the open order to cancel, as returned by toss_get_orders. |