pykiteconnect Error : 'KiteConnect' object has no attribute 'order_cancel'

tradeWise edited May 2019 in Python client
Hi all,

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'

Here is the code:

kite.order_cancel(order_id=r['orderID'], variety=r['orderVariety'], parent_order_id=pID)

Any quick help will be highly appreciated.

Thank you in advance!


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.
This discussion has been closed.