Historical exchange rates for the LTC/USD pair.
npm install --save @xrates/ltc-usd
const ltcToUsd = require('@xrates/ltc-usd')
console.log(ltcToUsd.lookup('2014-10-15'))
//=> 4.0667
Get the exchange rate for the specified date. The return value is a number that fits the description "1 LTC = ? USD".
If the specified date falls outside the span of the provided data, a RangeError will be thrown.
The data is collected from the CoinMarketCap Litcoin Historical Price page. The value for each day was aquired by averaging the "Open" and "Close" values.