convertAmounts( )


Converts an array of one or more amounts from one currency to another.

Use the convertAmounts() function to convert an array of one or more amounts between two currencies. The convertAmounts() function returns a Promise that resolves to a ConvertedAmounts object which contains an array of converted amounts and the timestamp for the conversion rate used.

Note: The currency codes used must exist in the array returned by the getAllCurrencies() function.

Method Declaration
Copy
Method Parameters
optionsConvertAmountsOptionsRequired

Currencies and amounts to convert.

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