Omise.Forex (omise v0.10.0)

Provides Forex API interfaces.

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

Summary

Types

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

Functions

Link to this function

retrieve(currency, opts \\ [])

@spec 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")