materialise_exchange_rate_parquet
Documentation for eth_defi.currency_api.parquet.materialise_exchange_rate_parquet function.
- materialise_exchange_rate_parquet(source_path, destination_path)
Atomically materialise one cleaned Parquet snapshot from DuckDB.
The write is deterministic for unchanged source rows: row order, column order and row values are all fixed, and no materialisation timestamp is inserted. A failed conversion leaves the prior destination untouched.
- Parameters
source_path (pathlib.Path) – Existing raw currency API DuckDB database opened read-only.
destination_path (pathlib.Path) – Cleaned Parquet destination, normally below the pipeline data directory.
- Returns
Verified Parquet snapshot metadata.
- Return type