I have developed an automated trading system using python kiteconnect API. My automated trading system today tried placing a SELL order on nifty futures. The order details my automated trading system sent are as follows.
File "/usr/local/lib/python2.7/dist-packages/kiteconnect-2.4.3-py2.7.egg/kiteconnect/__init__.py", line 252, in order_place File "/usr/local/lib/python2.7/dist-packages/kiteconnect-2.4.3-py2.7.egg/kiteconnect/__init__.py", line 376, in _post File "/usr/local/lib/python2.7/dist-packages/kiteconnect-2.4.3-py2.7.egg/kiteconnect/__init__.py", line 459, in _request kiteconnect.exceptions.OrderException: Not a valid Product Code
Why am I getting this error? For the same order details my automated trading system placed 4 BUY orders yesteday and and all of them got executed. The account details from where I placed these orders is
@suraj The segment(NFO) is not enabled for your account I guess. Try placing same order via kite and if the error is same please contact Zerodha support.
@suraj This should only happen if the product code is incorrect (NFO only has NRML and MIS), or if the segment is not enabled. Unfortunately, these order requests are not logged by the OMS.
When were these orders placed?