create_gtt_rule
Creates a Good Till Triggered (GTT) rule that automatically places an order when the trigger price is reached.
Instructions
Create a GTT (Good Till Triggered) rule. When trigger price is hit, the order is automatically placed.
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": {
"tradingsymbol": "<tradingsymbol>",
"symboltoken": "<symboltoken>",
"exchange": "<exchange>",
"producttype": "<producttype>",
"transactiontype": "<transactiontype>",
"price": "<price>",
"qty": "<qty>",
"disclosedqty": "<disclosedqty>",
"triggerprice": "<triggerprice>",
"timeperiod": "<timeperiod>"
},
"name": "create_gtt_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | Quantity to trade | |
| force | No | Set true to bypass soft quantity/value limits | |
| price | Yes | Limit price for the order | |
| exchange | Yes | Exchange | |
| timeperiod | Yes | Validity in days (e.g. 365) | |
| producttype | Yes | Product type | |
| symboltoken | Yes | Symbol token from search_scrip | |
| disclosedqty | Yes | Disclosed quantity | |
| triggerprice | Yes | Price at which the order triggers | |
| tradingsymbol | Yes | Trading symbol (e.g. SBIN-EQ) | |
| transactiontype | Yes | BUY or SELL |