How can we determine a closed position?

I’m using the ListPositionsAsync method to get all positions.

If the Quantity = 0 then it is closed else if it is open. Is it correct?