Invertee / CoinbasePro-Powershell

Powershell module for the CoinbasePro API.
MIT License
11 stars 6 forks source link

Piping Get-CoinbaseProducts to Get-CoinbaseProductTicker #4

Open jasonpearce opened 5 years ago

jasonpearce commented 5 years ago

I'd like to be able to pipe values to Get-CoinbaseProductTicker. Assuming that Get-CoinbaseProductTicker will eventually report pricing for all trading pairs, I'd like to pipe IDs to it. I'd like for the following examples to work.

Get-CoinbaseProducts | Get-CoinbaseProductTicker Get-CoinbaseProducts | Get-CoinbaseProductTicker -ProdcutID $_.ID

$Products = Get-CoinbaseProducts | Where-Object {$_.ID -like "BTC-*"} $Products.ID =Get-CoinbaseProductTicker