Prepare conditional order modification
toss_prepare_conditional_order_modifyPreview modifications to an open conditional order—update trigger prices, legs, quantity, or expiry—and obtain a confirmation token for submission.
Instructions
Previews a change to an EXISTING conditional order that has not triggered yet — its trigger prices, legs, quantity, or expiry. Every field is replaced, so send the complete intended state rather than only the parts you want changed. The symbol cannot be changed; cancel and create a new order for that. Find the conditionalOrderId with toss_get_conditional_orders (status 'OPEN'). 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 |
|---|---|---|---|
| type | Yes | Type after the change. SINGLE uses `first` only; OCO and OTO both require `second`. | |
| first | Yes | Primary leg after the change. | |
| second | No | Second leg. Required for OCO and OTO; must be omitted for SINGLE. | |
| quantity | Yes | Share count after the change, as a positive decimal string. | |
| orderType | Yes | LIMIT requires `orderPrice` on every leg. MARKET forbids it. OCO and OTO accept LIMIT only. | |
| expireDate | Yes | Last KST date the condition stays armed, formatted YYYY-MM-DD. | |
| conditionalOrderId | Yes | Identifier of the conditional order, as returned by toss_get_conditional_orders. |