Private/Get-ClobMidpoint.ps1
|
function Get-ClobMidpoint { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string]$TokenId, [Parameter()] [ValidateSet('table', 'json')] [string]$Output = 'table' ) process { $client = [ClobClient]::new() $result = $client.GetMidpoint($TokenId) [PolymarketOutput]::Format($result, $Output) } } |