UNPKG

get-eth-price

Version:

Get the current and historical ETH price in BTC and some major fiat currencies

15 lines (11 loc) 250 B
const {getEthPriceNow,getEthPriceHistorical}= require('./index'); //example use getEthPriceNow() .then( data => { console.log(data); }); //indicate the number of days, default 7 getEthPriceHistorical(2) .then( data => { console.log(data); });