This package has been deprecated

Author message:

deprecated

coinmarketcap-info

1.0.3 • Public • Published

coinmarketcap-info

Simple NodeJS script for retrieving data from CoinMarketCap's API

Installation: npm install coinmarketcap-info

Example usage:

var coinmarketcap = require('./coinmarketcap-fetch.js'); 
var cmc = new coinmarketcap();

Get Bitcoin's price:

cmc.get('btc', data => {
    console.log(data['price_usd']);
});

Get the 4th ranked coin's price:

cmc.getall(data => {
    console.log(data[3]['price_usd']);
});

Get global market info:

cmc.getglobal(data => {
    console.log(data['total_market_cap_usd']);
});

Package Sidebar

Install

npm i coinmarketcap-info

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • n3onis