global.fetch = require('node-fetch') const cc = require('cryptocompare')
// Basic Usage: cc.price('BTC', ['USD', 'EUR']) .then(prices => { console.log(prices) // -> { USD: 1100.24, EUR: 1039.63 } }) .catch(console.error)
// Passing a single pair of currencies: cc.price('BTC', 'USD') .then(prices => { console.log(prices) // -> { USD: 1100.24 } }) .catch(console.error)