Wanted to cancel all "Pending" or "Open" orders from Fyers Api v3

Currently, in the fyers Api v3 there is no method which will cancel all the open or pending orders directly.

Does My understanding is correct or am I missing anything..? Is there any buit-in method which I can use to achieve this..?

Thanks.

Hey @115982197954043404064 ,

You can use the Cancel Multi Order api where you can cancel upto 10 orders at once :
https://myapi.fyers.in/docsv3#tag/Other-Transactions/paths/~1OtherTrans/put

Hii @WWhYB2qrsx ,

Thanks for your reply. In order to use that I need the order Id and in order to get order ids I need to make another api call to get all the pending orders but I don’t want to go via that route.

I want to cancel all pending orders without giving order Id as input parameters.

Like Fyers have feature to exit all the open positions regardless of what is the id of that position(i.e fyers.exit_positions)

Thanks.

Hi @115982197954043404064,

Thank you for the feedback. Yes, we agree that exiting all open positions with a single API call is much needed. We will incorporate this in the upcoming enhancement.