how to get open positions details

As I can see in the documentation, fyers.positions() returns all the positions either open or closed? I want to check if there is open position of a particular id before placing an order, how can I do that?

1
10 replies