# Place GTT order order_id = kite.place_gtt(trigger_type=trigger_type, tradingsymbol=symbol, exchange=exchange, trigger_values=trigger_values, last_price=ltp, orders=orders)
Line 894 of connect.py has the response "r". Code for getting the response in connect.py file
try: r = self.reqsession.request(method, url, json=params if (method in ["POST", "PUT"] and is_json) else None, data=params if (method in ["POST", "PUT"] and not is_json) else None, params=query_params, headers=headers, verify=not self.disable_ssl, allow_redirects=True, timeout=self.timeout, proxies=self.proxies) # Any requests lib related exceptions are raised here - https://requests.readthedocs.io/en/latest/api/#exceptions except Exception as e: raise e
After the above code runs, it is containing the below error in the response received. '{"status":"error","message":"Invalid condition params.","data":null,"error_type":"InputException"}'
tradingsymbol and exchange
params as well. Go through the order list documentation and python oco gtt example.