Public/MT4/Get-MT4TradesGetBySymbol.ps1
|
function Get-MT4TradesGetBySymbol { <# .SYNOPSIS List trades by symbol (cached) #> [CmdletBinding()] param( [Parameter()][string] $TradePlatform, [Parameter()][string] $Symbol, [Parameter()][Nullable[guid]] $CacheId, [Parameter()][int] $CacheTimeout, [Parameter()][string] $IdempotencyKey ) $q = @{} if ($PSBoundParameters.ContainsKey('Symbol')) { $q['symbol'] = $Symbol } $reqArgs = @{ Method = 'Get'; Path = "/api/v2/MT4/{tradePlatform}/TradesGetBySymbol"; TradePlatform = $TradePlatform; Query = $q } if ($PSBoundParameters.ContainsKey('CacheId')) { $reqArgs.CacheId = $CacheId } if ($PSBoundParameters.ContainsKey('CacheTimeout')) { $reqArgs.CacheTimeout = $CacheTimeout } if ($PSBoundParameters.ContainsKey('IdempotencyKey')) { $reqArgs.IdempotencyKey = $IdempotencyKey } Invoke-MyWebApiRequest @reqArgs } |