coinlore-crypto-prices
v0.1.1
Published
Cryptocurrency prices - CoinLore
Downloads
3
Maintainers
Readme
NodeJS Simple API Client for CoinLore
Simple library for NodeJS to use coinlore crypto api Coinlore.com API
Coinlore provides original cryptocurrency data, coin prices calculated by own algorithm, market caps, trade volumes and more, information updated every minute or less.
Installation
npm install @coinlore/coinlore-crypto-prices
Example
const Coinlore = require('@coinlore/coinlore-crypto-prices');
const coinlore_client = new Coinlore();
//Get global market data
coinlore_client.getGlobal().then(console.log).catch(console.error);
//Get first 100 coins
coinlore_client.getTickers(0,100).then(console.log).catch(console.error);
//get Bitcoin info
coinlore_client.getTicker(90).then(console.log).catch(console.error);
//get Bitcoin markets
coinlore_client.getMarkets(90).then(console.log).catch(console.error);
//get Bitcoin social stats
coinlore_client.getSocial(90).then(console.log).catch(console.error);
//get Exchanges
coinlore_client.getExchanges().then(console.log).catch(console.error);
//get Exchange (Binance)
coinlore_client.getExchange(5).then(console.log).catch(console.error);
License
MIT license