1.0.3 • Published 6 years ago

coinmarketcap-info v1.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

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']);
});
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago