Get close positions and open positions | MQL5

 

Hi, i'm making a dot net api and i need to List of all close positions,

and the list of all open positions, How can i get them in MQL5?