USDExchangeRateSeriesBuild

Documentation for eth_defi.vault.crypto_vaults.USDExchangeRateSeriesBuild Python class.

class USDExchangeRateSeriesBuild

Bases: object

Validated effective USD-rate series for one denomination family.

The result keeps the optional rate curve, its export provenance and a stable error together, avoiding positional tuple handling at the caller.

Attributes summary

rates

Effective USD-per-underlying daily rate curve when validation succeeds.

coverage

JSON-serialisable source coverage information when source rows exist.

error_reason

Stable reason USD metrics cannot be calculated for this family.

Methods summary

__init__(rates, coverage, error_reason)

rates: Optional[pandas.Series]

Effective USD-per-underlying daily rate curve when validation succeeds.

coverage: Optional[dict[str, Any]]

JSON-serialisable source coverage information when source rows exist.

error_reason: Optional[str]

Stable reason USD metrics cannot be calculated for this family.

__init__(rates, coverage, error_reason)
Parameters
Return type

None