Private/Get-PolymarketPosition.ps1

function Get-PolymarketPosition {
  [CmdletBinding()]
  param (
    [Parameter(Mandatory = $true)]
    [string]$Address,

    [Parameter()]
    [int]$Limit = 25,

    [Parameter()]
    [int]$Offset = 0,

    [Parameter()]
    [ValidateSet('table', 'json')]
    [string]$Output = 'table'
  )

  process {
    $client = [DataClient]::new()
    $result = $client.GetPositions($Address, $Limit, $Offset)
    [PolymarketOutput]::Format($result, $Output)
  }
}