error while closing CO

y_sravan
y_sravan edited March 2020 in Python client
seems CO are enabled today after a long time and I'm getting error while closing the order

Order cannot be cancelled as it is being processed. Try later.
order_id:200331000905271, parent_order_id:200331000905271

I could close it manually from web
  • sujith
    Can you give us the exact error message from the Kite Connect? We will check and get back to you.
  • y_sravan
    y_sravan edited March 2020
    @sujith this is exactly the error I'm getting in the exception in cancel_order
    Order cannot be cancelled as it is being processed. Try later.
  • sujith
    You seem to be sending the same order id for both order_id and parent_order_id param.
    You need to send second leg order for order_id and parent_order_id for exiting cover order.
  • y_sravan
    @sujith thanks for pointing it.
    wonder how same code was working earlier.
    anyway we can close this thread, after fixing things are working fine
This discussion has been closed.