How to cancel MIS order with Aliceblue API

Hello. I have been using aliceblue api for a month. I use BO orders, but wanted to switch to MIS. The problem is I am able to place the MIS order, but don’t know how to cancel it. For example if my intraday stop loss on equity is 4%, so at that moment I want to cancel all MIS orders. Please help me.

Please someone help.

You just need the order_id here for the BO order stored.
If you cancel that order, that’s it.

Here is the method -

If you are using Krishna’s API of Just follow this syntax -

alice.cancel_order('170713000075481') #Cancel an open order