backfill_chain
Documentation for eth_defi.tokenised_fund.asseto.backfill.backfill_chain function.
- backfill_chain(chain_id, products, *, dry_run, scan_prices, clean_prices, frequency, vault_db, vault_db_path, price_database_path, cleaned_price_database_path, reader_state_database_path, token_cache)
Backfill one Asseto EVM chain.
Metadata and historical writes use the same shared database and scanner paths as the normal vault pipeline, but both are limited to selected Asseto identifiers.
- Parameters
chain_id (int) – EVM chain id.
products (list[eth_defi.tokenised_fund.asseto.offchain_api.AssetoOffchainProduct]) – Selected Asseto products on this chain.
dry_run (bool) – Whether filesystem/database writes are disabled.
scan_prices (bool) – Whether to scan supply, NAV, and TVL history.
clean_prices (bool) – Whether to replace selected cleaned price histories.
frequency (Literal['1h', '1d']) – Historical sampling interval.
vault_db (eth_defi.vault.vaultdb.VaultDatabase) – In-memory metadata database.
vault_db_path (pathlib.Path) – Metadata database output path.
price_database_path (pathlib.Path) – Uncleaned historical price parquet path.
cleaned_price_database_path (pathlib.Path) – Cleaned historical price parquet path.
reader_state_database_path (pathlib.Path) – Reader-state pickle path.
token_cache (eth_defi.token.TokenDiskCache) – Shared token metadata cache.
- Returns
Summary row for operator output.
- Return type