GTT Query

sp2676
Let's say I have 100 shares of a company (eg. 'NSE:INFY') in my account, and the current price is 1600, I want to create a GTT (sell at 1650 if price crosses that value) or (sell at 1550 if price goes below this value), I think of this code:
from kiteconnect import KiteConnect

kite = KiteConnect(api_key=api_key)
# kite object initialized with access token and api key
kite.place_gtt(
trigger_type="two-leg",
tradingsymbol="NSE:INFY",
exchange="NSE",
trigger_values=[1550, 1650],
last_price=1600,
order={"transaction_type": "SELL", "quantity": 100},
)
But what about the price field that's required in order ? What should that be ? I'm confused if I am missing something ..

This discussion has been closed.