/api/prime/trading/v1/accounts/{accountId}/margin/positions/closeStarts an asynchronous process to automatically close all positions by selling and buying assets to attempt to net them to zero.
accountIdstringRequiredcurrencies array[string] closePositionsRequestId string <uuid>required accountId string required enterpriseId string required status string required pending in_progress completed failed cancelledbitgoUserId string required creationDate string <date-time>required