Converts an array of 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.
Currencies and amounts to convert.