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