Modify an alert (dry run by default)
modify_alertUpdate an existing alert by sending its complete new definition, previewing changes with a dry run before sending. Use it to change conditions, name, or automated order basket safely.
Instructions
Modify an alert. Kite replaces the whole alert, so send its complete new definition: call get_alert first
and change only what you mean to change. The fields are those of create_alert, with the same rules (for an ato
alert that includes the whole basket orders). DRY RUN BY DEFAULT, confirmed like create_alert.
Safety: an ato alert's new basket is checked like place_order. A modification takes no new slot of the daily order count, but the full value of the new basket counts toward the day's value cap. The dry run shows the stored alert. Kite's docs do not say whether a basket sent here replaces the stored basket or adds to it, so the dry run warns when the alert already has one. Returns the updated alert when sent.
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": {
"uuid": "<uuid>",
"name": "<name>",
"type": "<type>",
"lhs_exchange": "<lhs_exchange>",
"lhs_tradingsymbol": "<lhs_tradingsymbol>",
"operator": "<operator>",
"rhs_type": "<rhs_type>"
},
"name": "modify_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | a label for the alert | |
| type | Yes | simple: only notify. ato: also place the basket `orders` by itself when the condition is true | |
| uuid | Yes | the alert's uuid (see get_alerts) | |
| orders | No | the basket of orders: required for type=ato (up to 20), not allowed for simple | |
| 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 | |
| operator | Yes | comparison of the monitored value with the right-hand side | |
| rhs_type | Yes | constant: compare with rhs_constant. instrument: compare with another instrument (rhs_*) | |
| lhs_exchange | Yes | exchange of the monitored instrument: NSE, BSE, NFO, CDS, BCD, MCX, or INDICES for indices | |
| rhs_constant | No | the number to compare with (INR for prices); only for rhs_type=constant | |
| rhs_exchange | No | only for rhs_type=instrument | |
| lhs_attribute | No | what to monitor; LastTradedPrice is the only attribute Kite documents | LastTradedPrice |
| rhs_attribute | No | only for rhs_type=instrument; defaults to LastTradedPrice | |
| lhs_tradingsymbol | Yes | tradingsymbol of the monitored instrument: INFY, 'NIFTY 50' | |
| rhs_tradingsymbol | No | only for rhs_type=instrument | |
| confirmation_token | No | the confirmation_token returned by a dry run of this exact call (single use) |