cryptocompare
CryptoCompare JavaScript API
Install
npm install --save cryptocompare
Usage
Methods
coinList
Reference: https://www.cryptocompare.com/api/#-api-data-coinlist-
- Signature:
coinList()
- Parameters: (none)
- Returns: A Promise function that returns contains an associative array of coins.
Example:
var cc = require('cryptocompare')
cc.coinList()
.then(coinList => {
console.dir(coinList.BTC)
})
.catch(console.error.bind(console)
Outputs:
{ Id: '1182',
Url: '/coins/btc/overview',
ImageUrl: '/media/19633/btc.png',
Name: 'BTC',
CoinName: 'Bitcoin',
FullName: 'Bitcoin (BTC)',
Algorithm: 'SHA256',
ProofType: 'PoW',
FullyPremined: '0',
TotalCoinSupply: '21000000',
PreMinedValue: 'N/A',
TotalCoinsFreeFloat: 'N/A',
SortOrder: '1' }
price
Reference: https://www.cryptocompare.com/api/#-api-data-price-
priceHistorical
https://www.cryptocompare.com/api/#-api-data-pricehistorical-
License
MIT