Dear rs7683.
You mentioned in the other post that there is a correction in the following code. Would you please post the corrected code. Thanks in advance.
for i in range(len(kite.orders())):
if (kite.orders()[i]["status"].find("PENDING") != -1):
order_id = kite.orders()[-1]["order_id"]
kite.cancel_order(kite.VARIETY_REGULAR, order_id, parent_order_id=None)
July 2020