Handkit.Wallet.get_exchange_rate
You're seeing just the function
get_exchange_rate
, go back to Handkit.Wallet module for more information.
Specs
get_exchange_rate(Handkit.Connect.t(), String.t()) :: {:ok, map()} | {:error, any()}
Returns the exchange rate of the given currency code.
If no currency code is given, defaults to "USD"
.
Example
iex> Handkit.Wallet.get_exchange_rate(client, "GBP")
{:ok, %{
"exchange_rate_version" => "60cd1670bae3370b5c628574",
"fiat_symbol" => "USD",
"gbp" => 112.72077169559775,
"rate" => 112.72077169559775
}}