omise v0.5.2 Omise.Forex

Provides Forex API interfaces.

https://www.omise.co/forex-api

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %Omise.Forex{from: String.t, location: String.t, object: String.t, rate: float, to: String.t}

Link to this section Functions

Link to this function retrieve(currency, opts \\ [])
retrieve(String.t, Keyword.t) ::
  {:ok, t} |
  {:error, Omise.Error.t}

Retrieve the forex.

Returns {:ok, forex} if the request is successful, {:error, error} otherwise.

Examples

Omise.Forex.retrieve("usd")

Omise.Forex.retrieve("jpy")

Omise.Forex.retrieve("sgd")