Skip to content

Instantly share code, notes, and snippets.

@codesynapse
Created February 3, 2018 14:15
Show Gist options
  • Save codesynapse/18a28691a794a364fb743b067e68c8da to your computer and use it in GitHub Desktop.
Save codesynapse/18a28691a794a364fb743b067e68c8da to your computer and use it in GitHub Desktop.
CoinmarketCAP prices for popular crypto currency NODE Script
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