Money.ExchangeRates.get_latest_rates

You're seeing just the callback get_latest_rates, go back to Money.ExchangeRates module for more information.
Link to this callback

get_latest_rates(config)

View Source

Specs

get_latest_rates(config :: Money.ExchangeRates.Config.t()) ::
  {:ok, map()} | {:error, binary()}

Invoked to return the latest exchange rates from the configured exchange rate retrieval service.

  • config is an %Money.ExchangeRataes.Config{} struct

Returns {:ok, map_of_rates} or {:error, reason}