Instrument is Invalid while trying to place an order through python

gkaranam
Hi,

I am getting below exception when trying to place an order through python.

File "C:/Users/win10/PycharmProjects/Trading-Application/USD-INR.py", line 907, in trigger
product=kite.PRODUCT_MIS)
File "C:\Users\win10\PycharmProjects\Trading-Application\venv\lib\site-packages\kiteconnect-3.7.7-py3.7.egg\kiteconnect\connect.py", line 326, in place_order
return self._post("order.place", params)["order_id"]
File "C:\Users\win10\PycharmProjects\Trading-Application\venv\lib\site-packages\kiteconnect-3.7.7-py3.7.egg\kiteconnect\connect.py", line 701, in _post
return self._request(route, "POST", params)
File "C:\Users\win10\PycharmProjects\Trading-Application\venv\lib\site-packages\kiteconnect-3.7.7-py3.7.egg\kiteconnect\connect.py", line 766, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.InputException: Instrument is invalid.

the values that i am sending while trying to place an order are [variety = "regular",exchange = kite.EXCHANGE_NSE, tradingsymbol= "SAIL", transaction_type= kite.TRANSACTION_TYPE_BUY, quantity = 3296, order_type= kite.ORDER_TYPE_MARKET, product= kite.PRODUCT_MIS]

@sujith @rakeshr
  • rakeshr
    @gkaranam
    [variety = "regular",exchange = kite.EXCHANGE_NSE, tradingsymbol= "SAIL", transaction_type= kite.TRANSACTION_TYPE_BUY, quantity = 3296, order_type= kite.ORDER_TYPE_MARKET, product= kite.PRODUCT_MIS]
    All params seem to be correct here.
    Can you re-try once? If still issue, paste complete order-placement code here.
  • gkaranam
    Hi @rakeshr , i tried and it worked correctly today. don't know what the issue was. thanks for your response.
This discussion has been closed.