Conversion Endpoint - lico/jFixer GitHub Wiki

Convert an amount from one currency to another

The following returns the conversion of 150.30 EUR in CHF :

FixerApiLoader fixerApiLoader = (baseUrl, accessKey, baseCurrency);    
List<ExchangeRate> rates = fixerApiLoader.getConversion("EUR", "CHF", 150.30);     

where:

  • fromCurrency is a 3-digits symbol of a supported currency
  • targetCurrency is a 3-digits symbol of a supported currency
  • amount is a double value

A FixerException is thrown in case of error.