Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Last active December 3, 2018 22:29
Show Gist options
  • Save PrateekKumarSingh/b8c2958e4f0d10edb3ad7dc6922acc2b to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/b8c2958e4f0d10edb3ad7dc6922acc2b to your computer and use it in GitHub Desktop.
Install-Module Coin -Force
$Date = Get-Date
# define parameters for splatting
$param = @{
FromSymbol ='BTC'
ToSymbol ='USD'
DataInterval ='Day'
Since = $Date.AddDays(-7)
Until = $Date
}
# capture the market closing price for 7 days
Get-CoinPriceHistory @param | Format-Table -AutoSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment