CurrencyConversion.Source.Fixer (currency_conversion v1.0.0) View Source

Currency Conversion Source for http://fixer.io/

Please add jason and httpotion to your deps in your mix.exs to use this source.

def deps do
  [
    {:currency_conversion, "~> 0.3"},
    {:jason, "~> 1.1"},
    {:httpotion, "~> 3.1"}
  ]
end

Link to this section Summary

Functions

Load current currency rates from fixer.io.

Link to this section Functions

Load current currency rates from fixer.io.

Examples

iex> CurrencyConversion.Source.Fixer.load([])
{:ok, %CurrencyConversion.Rates{base: :EUR,
  rates: %{AUD: 1.4205, BGN: 1.9558, BRL: 3.4093, CAD: 1.4048, CHF: 1.0693,
   CNY: 7.3634, CZK: 27.021, DKK: 7.4367, GBP: 0.85143, HKD: 8.3006,
   HRK: 7.48, HUF: 310.98, IDR: 14316.0, ILS: 4.0527, INR: 72.957,
   JPY: 122.4, KRW: 1248.1, MXN: 22.476, MYR: 4.739, NOK: 8.9215,
   NZD: 1.4793, PHP: 53.373, PLN: 4.3435, RON: 4.4943, RUB: 64.727,
   SEK: 9.466, SGD: 1.5228, THB: 37.776, TRY: 4.1361, USD: 1.07,
   ZAR: 14.31}}}