mtwilliams / xe

Realtime currency conversion for Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xe

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", "BRL")
  {:ok, {1.00, 0.891482}}

Installation

Standard routine:

  1. Add xe to your list of dependencies in mix.exs:
def deps do
  [{:xe, "~> 0.0.1"}]
end
  1. Ensure xe is started before your application:
def application do
  [applications: [:xe]]
end

About

Realtime currency conversion for Elixir


Languages

Language:Elixir 100.0%