exchange-rates
exchange-rates copied to clipboard
💰🌍 An unofficial node.js wrapper for the awesome and free ratesapi.io
How do you use convert function with using different api like; ```js let result = await exchangeRates() .setApiBaseUrl('https://api.exchangerate.host') ``` ```js const { convert } = require('exchange-rates-api'); (async () => {...
Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...
https://api.ratesapi.io no longer works, please change it.
Hi @over-engineer If you're looking for another source or backup option you can check out my [currency converter API](https://www.exchangerate-api.com/). I've always had a free option in the 10+ years I've...
If the primary API is down, we should automatically fall back to alternative APIs. --- As @trent823 suggested in #12: >Would be good to build in automatic retry on alternative...
Noticed that dates (presumably when markets are closed) are missing from historical data. E.g.: ``` rates = await exchangeRates() .from('2020-01-01').to('2020-12-31') .symbols(['USD']) .fetch(); ``` ``` { '2020-01-02': { USD: 1.1193 },...
There are some basic unit tests in the `test` directory, but we should definitely write more.