oxr v0.4.0 OXR
A thin wrapper for the Open Exchange Rates API Requires an app id, which you can receive at https://openexchangerates.org
Link to this section Summary
Functions
Convert money value from one currency to another
Get all currencies available
Get historical exchange rates for any date available Default base is USD
Get latest exchange rates Default base is USD
Get historical exchange rates for a given time period Default base is USD
Get basic plan information and usage statistics Warning: this endpoint is still in beta
Link to this section Types
Link to this section Functions
convert(String.t, number, String.t, String.t) :: {:ok, timestamp, rate, converted} | {:error, http_status, error_message, error_description} | {:error, error_description}
Convert money value from one currency to another
currencies(boolean) ::
{:ok, currencies} |
{:error, http_status, error_message, error_description} |
{:error, error_description}
Get all currencies available
Get historical exchange rates for any date available Default base is USD
latest(String.t, String.t, [String.t, ...]) :: {:ok, timestamp, rates} | {:error, http_status, error_message, error_description} | {:error, error_description}
Get latest exchange rates Default base is USD
time_series(String.t, String.t, [String.t, ...], String.t, String.t) :: {:ok, rates} | {:error, http_status, error_message, error_description} | {:error, error_description}
Get historical exchange rates for a given time period Default base is USD
usage(String.t) :: {:ok, %Data{app_id: term, plan: term, status: term, usage: term}} | {:error, http_status, String.t, String.t} | {:error, String.t}
Get basic plan information and usage statistics Warning: this endpoint is still in beta