Skip to content

coinlore/NodeJS-Client-For-CoinLore-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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