getConversionRate( )


Gets a currency conversion rate.

The getConversionRate() function returns a Promise that resolves to a ConversionRate object, which contains the currency conversion rate between two currencies. The exchange rates are provided by XE on a daily basis and include the timestamp when they were set.

Note: By using this function you agree to XE's Terms of Use.

Method Declaration
Copy
Method Parameters
sourceCurrencystringRequired

Currency to convert from.


targetCurrencystringRequired

Currency to convert to.

Returns
Return Type:Promise<ConversionRate>
Was this helpful?
Yes
No