Created
February 3, 2018 14:15
-
-
Save codesynapse/18a28691a794a364fb743b067e68c8da to your computer and use it in GitHub Desktop.
CoinmarketCAP prices for popular crypto currency NODE Script
This file contains 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
var CoinMarketCap = require("node-coinmarketcap"); | |
var coinmarketcap = new CoinMarketCap(); | |
coinmarketcap.multi(coins => { | |
console.log('BTC :'+ coins.get("BTC").price_usd); | |
console.log('ETH :'+ coins.get("ETH").price_usd); | |
console.log('DASH :'+coins.get("DASH").price_usd); | |
console.log('BCH :'+ coins.get("BCH").price_usd); | |
console.log('STEEM :'+ coins.get("STEEM").price_usd); | |
console.log('Litecoin :'+ coins.get("LTC").price_usd); | |
console.log('Bitcoin Gold :'+ coins.get("BTG").price_usd); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment