paulodiniz / xe

Realtime currency conversion for Elixir
22 stars 2 forks source link

Xe

Continuous Integration Code Coverage Documentation Package

Xe is a dead-simple way of converting between currencies. It uses real-time conversion rates from Xe.com

Example

  iex(1)> Xe.rates("USD", "EUR")
  {:ok, {1.00, 0.891482}}

Installation

  1. Add xe to your list of dependencies in mix.exs:

    def deps do
    [{:xe, "~> 0.0.1"}]
    end
  2. Drink your :tea:

  3. Enjoy!