Recently, I subscribed to Zerodha KIte API and I am able to place orders successfully but while exiting the orders using pykiteconnect, I am getting following error:
'KiteConnect' object has no attribute 'order_cancel'
One more interesting observation, when I execute same code on python prompt, it executes the command without any problem. So it's should not be a version issue.
Thank you very much for your response! Really appreciate it.
I think, I got the the solution. As mentioned in my post, it was working fine on the python prompt but while executing the file, it was giving that error.
The problem is, in my virtual environment, it gives an error whereas outside virtualenv, it works fine.
Surprisingly, the kiteconnect version is same on both the environments so there must be something else playing up.
I will definitely dig it out. But for now, I am back in the game.
https://github.com/zerodhatech/pykiteconnect/blob/master/kiteconnect/connect.py#L348
`pip show version`
https://pypi.org/project/kiteconnect/
Make sure it is 3.7.7
`pip install kiteconnect==3.7.7`
I think, I got the the solution. As mentioned in my post, it was working fine on the python prompt but while executing the file, it was giving that error.
The problem is, in my virtual environment, it gives an error whereas outside virtualenv, it works fine.
Surprisingly, the kiteconnect version is same on both the environments so there must be something else playing up.
I will definitely dig it out. But for now, I am back in the game.
Thank you again for your help!
Cheers!