load_usd_exchange_rates

Documentation for eth_defi.tokenised_fund.asseto.backfill.load_usd_exchange_rates function.

load_usd_exchange_rates(database_path, denomination_symbols)

Load historical fiat conversion rates needed by selected products.

Stored rates are units of quote currency per one USD. Asseto NAV values in a non-USD currency are consequently divided by the matching rate before they enter the shared USD-denominated cleaned history.

Parameters
Returns

Rates keyed by upper-case quote currency, each ordered by UTC day.

Raises

RuntimeError – If a required database or currency history is missing.

Return type

dict[str, tuple[tuple[int, decimal.Decimal], …]]