Prepare order modification
toss_prepare_order_modifyPreview changes to an existing open order (quantity, price, or type) and get a confirmation token for user approval. Validates the request without sending it to the market.
Instructions
Previews a change to an EXISTING open regular order — its quantity, price, or order type. The order keeps its identity; only the listed fields change. Find the orderId with toss_get_orders (status 'OPEN'). Use toss_prepare_conditional_order_modify 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 |
|---|---|---|---|
| price | No | New limit price as a positive decimal string. Required when `orderType` is LIMIT. | |
| orderId | Yes | Identifier of the open order, as returned by toss_get_orders. | |
| quantity | No | New share count as a positive decimal string. Omit to leave the quantity unchanged. | |
| orderType | Yes | Order type after the change. LIMIT requires `price`; MARKET forbids it. |