0.1.2 • Published 6 years ago

ccprice v0.1.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago
const ccprice = require('ccprice');

ccprice.cmcListAll(limit, start, convert);
// returns an object containing data about cryptocurrencies, including price
// limit is an integer, limiting the number of results.
// start is the starting point for counting down cryptocurrencies. cryptocurrencies are ranked // from 'start' to 'start - limit'.
// convert is a string, the currency you want to convert to. example: USD, EUR, etc.  
  1. Example: Retrieving the price of Bitcoin. cmc gives you data about all of the in use cryptocurrencies, but with these specific functions, you can get data about the cryptocurrency you want and you can be sure that the retrieved price is up to date.
const ccprice = require('ccprice');

ccprice.btcList();
// returns up to date value of BTC in USD.