Money.ExchangeRates.Retriever.historic_rates
historic_rates, go back to Money.ExchangeRates.Retriever module for more information.
Forces retrieval of historic exchange rates for a single date
dateis a date returned byDate.new/3or any struct with the elements:year,:monthand:dayora
Date.Range.tcreated byDate.range/2that specifies a range of dates to retrieve
Returns:
{:ok, rates}if exchange rates request is successfully sent.{:error, reason}if the request cannot be send.
Sends a message ot the exchange rate retrieval worker to request historic rates for a specified date or range be retrieved and stored.
This function does not return exchange rates, for that see
Money.ExchangeRates.latest_rates/0 or
Money.ExchangeRates.historic_rates/1.
Forces retrieval of historic exchange rates for a range of dates
fromis a date returned byDate.new/3or any struct with the elements:year,:monthand:day.tois a date returned byDate.new/3or any struct with the elements:year,:monthand:day.
Returns:
{:ok, rates}if exchange rates request is successfully sent.{:error, reason}if the request cannot be send.
Sends a message to the exchange rate retrieval process for each
date in the range from..to to request historic rates be
retrieved.