The convertCurrency formula converts an amount from one currency to another, based on the exchange rates published by the European Central Bank. An optional date parameter allows conversion using historic exchange rates. Syntax Code Block |
---|
convertCurrency("From_Currency","To_Currency",amount,[date]) |
ExamplesconvertCurrency("USD", "EUR", $total_payment, $payment_date) | Convert the Total Payment from USD to EUR using the historic exchange rate on the Payment Date. | convertCurrency("JPY", "USD", $contract_amount)
| Convert the Contract Amount from Japanese Yen to US Dollars using the current exchange rate. |
Two currency conversion formulas are provided using an open-source API to convert an amount between currencies or return the exchange rate. Currency conversion formulas use the open-source JSON API |