Skip to content
Exchange Rates API for Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
.gitignore
COPYING
README.md
mix.exs
mix.lock

README.md

ExchangeRatesApi

Implementation for the API available in this site: https://exchangeratesapi.io/

This uses Tesla library to make easier the access to the endpoint and Nebulex for the cache and avoid to perform so many queries to the service.

Installation

If available in Hex, the package can be installed by adding exchange_rates_api to your list of dependencies in mix.exs:

def deps do
  [
    {:exchange_rates_api, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/exchange_rates_api.

Usage

ExchangeRatesApi.convert_call "USD", "EUR"
# 0.876545

Enjoy!

You can’t perform that action at this time.