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
database_path (pathlib.Path) – Currency API DuckDB produced by
scan-currencies.denomination_symbols (collections.abc.Iterable[Optional[str]]) – Asseto accounting currencies selected for this run.
- 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