Modify an open order (dry run by default)
modify_orderUpdate an open or pending order's quantity, price, order type, trigger price, validity, or disclosed quantity with dry-run validation and cap checks before sending live.
Instructions
Modify an open or pending order: quantity, price, order_type, trigger_price, validity, disclosed_quantity (cover orders: price / trigger_price only). DRY RUN BY DEFAULT, confirmed like place_order. The new value is checked against the per-order cap and any increase against the daily cap. Kite allows 25 modifications per order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>"
},
"name": "modify_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | ||
| dry_run | No | true (default): validate and preview only, nothing is sent. false: send it live, which needs live trading enabled on the server and the confirmation_token from a dry run | |
| variety | No | the order's variety (it is part of the URL) | regular |
| order_id | Yes | ||
| quantity | No | ||
| validity | No | ||
| order_type | No | ||
| trigger_price | No | ||
| parent_order_id | No | co second leg: the parent | |
| market_protection | No | MARKET / SL-M: -1 or (0, 100] | |
| confirmation_token | No | the confirmation_token returned by a dry run of this exact call (single use) | |
| disclosed_quantity | No |