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 - antplus.aliceblueonline.com/#cancel-order
If you are using Krishna’s API of GitHub - krishnavelu/alice_blue: Official Python library for Alice Blue API trading. Just follow this syntax -
alice.cancel_order('170713000075481') #Cancel an open order