Omise.Forex (omise v0.9.0)
Provides Forex API interfaces.
Link to this section Summary
Functions
Retrieve the forex.
Link to this section Types
Link to this section Functions
Link to this function
retrieve(currency, opts \\ [])
Specs
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")