Skip to content

Convert with different API #16

@Batur123

Description

@Batur123

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
})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions