SoftBank.ExchangeRates.CoinMarketCap.get_latest_rates
You're seeing just the function
get_latest_rates
, go back to SoftBank.ExchangeRates.CoinMarketCap module for more information.
Specs
get_latest_rates(Money.ExchangeRates.Config.t()) :: {:ok, map()} | {:error, String.t()}
Retrieves the latest exchange rates from CoinMarketCap site.
config
is the retrieval configuration. When invoked from the exchange rates services this will be the config returned fromMoney.ExchangeRates.config/0
Returns:
{:ok, rates}
if the rates can be retrieved{:error, reason}
if rates cannot be retrieved
Typically this function is called by the exchange rates retrieval service although it can be called outside that context as required.