Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert with different API #16

Open
Batur123 opened this issue Apr 23, 2022 · 0 comments
Open

Convert with different API #16

Batur123 opened this issue Apr 23, 2022 · 0 comments

Comments

@Batur123
Copy link

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
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant