Functions/Private/Get-CoinbaseProMarginPositionRefreshAmounts.ps1

function Get-CoinbaseProMarginPositionRefreshAmounts { 
    Param(
        [Parameter(Mandatory=$true)] $APIKey,
        [Parameter(Mandatory=$true)] $APISecret,
        [Parameter(Mandatory=$true)] $APIPhrase,
        [parameter()] [switch] $SandboxAPI 
    )
    
    $api = Get-BlankAPI -SandboxAPI:$SandboxAPI
    $api.key = "$APIKey"
    $api.secret = "$APISecret"
    $api.passphrase = "$APIPhrase"

    $api.method = 'GET'
    $api.url = '/margin/position_refresh_amounts'

    $response = Invoke-CoinbaseProRequest $api
    Write-Output $response
}