Money.ExchangeRates.Retriever.latest_rates

You're seeing just the function latest_rates, go back to Money.ExchangeRates.Retriever module for more information.

Forces retrieval of the latest exchange rates

Sends a message ot the exchange rate retrieval worker to request current rates be retrieved and stored.

Returns:

  • {:ok, rates} if exchange rates request is successfully sent.

  • {:error, reason} if the request cannot be send.

This function does not return exchange rates, for that see Money.ExchangeRates.latest_rates/0 or Money.ExchangeRates.historic_rates/1.