Last active
December 3, 2018 22:29
-
-
Save PrateekKumarSingh/b8c2958e4f0d10edb3ad7dc6922acc2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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