coinlore-crypto-prices

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i coinlore-crypto-prices

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

18.1 kB

Total Files

11

Last publish

Collaborators

  • coinlore