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.
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 |