Which API corresponds to "Close All Positions" on the GUI ?

Hi,

I am looking for an API that does the same thing as “Close All Positions” on the GUI, which API does that ?
Thanks in advance for your answer.
CloseAllPositions

Regards,
Moussa

There isn’t an API endpoint to do that. You have to get all your current positions and close them one by one in your program.

OK, thanks for your answer.