Close all margin positions

post/api/prime/trading/v1/accounts/{accountID}/margin/close

Starts an asynchronous process to automatically close all positions by selling and buying assets to attempt to net them to zero.

Path Parameters

  • accountIDstringRequired
    The ID of the account

Request Body

One of
currencies array[string]