-
Notifications
You must be signed in to change notification settings - Fork 5
Convert with different API #16
Copy link
Copy link
Open
Description
How do you use convert function with using different api like;
let result = await exchangeRates()
.setApiBaseUrl('https://api.exchangerate.host')const { convert } = require('exchange-rates-api');
(async () => {
let amount = await convert(2000, 'USD', 'EUR', '2018-01-01');
console.log(amount); // 1667.6394564000002
})();Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels