Pending orders

Hi. With api is there any method through which I can cancel only pending order and not pending SL or pending Target orders.

Or is there a way to cancel a order which is placed through api via order id or something

Hey @yogya.9olw812n

Yes the order cancellation is possible through API with order id , you can use the cancel order API . Please find the documentation for the same :

https://myapi.fyers.in/docsv3#tag/Other-Transactions/paths/~1OtherTrans/put

Ok, cool, will try this.