possible to Place new buy Order directly as GTT order as first buy (kiteconnect.place_gtt) ? or i have to plate the normal then i have to update as GDT order ?
I am trying kiteconnect.place_gtt but getting error as
File "C:\Python39\lib\site-packages\kiteconnect\connect.py", line 724, in place_gtt return self._post("gtt.place", params={ File "C:\Python39\lib\site-packages\kiteconnect\connect.py", line 840, in _post return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params) File "C:\Python39\lib\site-packages\kiteconnect\connect.py", line 912, in _request raise exp(data["message"], code=r.status_code) kiteconnect.exceptions.InputException: Invalid order params.
You are using incorrect values for exchange and tradingsymbol.
Tradingsymbol and instrument tokens are different things.
Also,why are you sending price in the order when you are placing market order??
Trigger values mean at what price your order should be triggered,i.e,sent to the exchange.
You can send a market/limit order, whatever you want.
PS- Don't write in a hurry from next time !
How would anyone tell you how to 'plate' a 'GDT' order??
https://kite.trade/docs/connect/v3/orders/
You are using incorrect values for exchange and tradingsymbol.
Tradingsymbol and instrument tokens are different things.
Also,why are you sending price in the order when you are placing market order??
Trigger values mean at what price your order should be triggered,i.e,sent to the exchange.
You can send a market/limit order, whatever you want.
PS- Don't write in a hurry from next time !
How would anyone tell you how to 'plate' a 'GDT' order??