Created
December 3, 2018 22:12
-
-
Save PrateekKumarSingh/c0379877167a5b99aa1d39d7a05a0943 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 Graphical, Coin -Force | |
Import-Module Graphical, Coin | |
$Date = Get-Date | |
# capture price history | |
$LTC = Get-CoinPriceHistory -FromSymbol LTC -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
$ETH = Get-CoinPriceHistory -FromSymbol ETH -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
$BTC = Get-CoinPriceHistory -FromSymbol BTC -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
$ZEC = Get-CoinPriceHistory -FromSymbol ZEC -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
$DASH = Get-CoinPriceHistory -FromSymbol DASH -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
$XRP = Get-CoinPriceHistory -FromSymbol XRP -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
$BCH = Get-CoinPriceHistory -FromSymbol BCH -ToSymbol USD -DataInterval Day -Since $Date.AddDays(-30*3) -Until $Date | % close | |
# plot the graph with price trends | |
Show-Graph -Datapoints $LTC -GraphTitle 'LiteCoin [USD]' | |
Show-Graph -Datapoints $ETH -YAxisStep 50 -GraphTitle 'Ethereum [USD]' | |
Show-Graph -Datapoints $BTC -YAxisStep 500 -GraphTitle 'BitCoin [USD]' | |
Show-Graph -Datapoints $ZEC -YAxisStep 30 -GraphTitle 'ZCash [USD]' | |
Show-Graph -Datapoints $DASH -YAxisStep 50 -GraphTitle 'Dash [USD]' | |
Show-Graph -Datapoints $BCH -YAxisStep 150 -GraphTitle 'BitCoin Cash [USD]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment