modify_gtt
Update an existing GTT order by changing trigger values and linked orders; runs as a dry-run unless trading is explicitly enabled.
Instructions
Modify an existing GTT order. Dry-run unless KITE_MCP_ENABLE_TRADING=true is set.
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": {
"trigger_id": "<trigger_id>",
"trigger_type": "<trigger_type>",
"tradingsymbol": "<tradingsymbol>",
"exchange": "<exchange>",
"trigger_values": "<trigger_values>",
"last_price": "<last_price>",
"orders": "<orders>"
},
"name": "modify_gtt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | Yes | ||
| exchange | Yes | ||
| last_price | Yes | Current market price, required by Kite to validate the trigger | |
| trigger_id | Yes | ||
| trigger_type | Yes | Use "single" for a plain stop-loss/target, "two-leg" for OCO (one triggers, the other cancels) | |
| tradingsymbol | Yes | ||
| trigger_values | Yes | [trigger] for "single", [lower, upper] for "two-leg" |