SourceCurrencyRate

Documentation for eth_defi.feed.stablecoin_rate.SourceCurrencyRate Python class.

class SourceCurrencyRate

Bases: object

USD/source-currency rate read from the local currency DuckDB.

Attributes summary

source_currency

Lower-case source currency ticker, e.g.

usd_per_source_currency

USD per one source_currency unit.

date

Currency API calendar date for usd_per_source_currency.

source

Currency API provider/source column.

is_stale

True when the FX row is older than the accepted refresh delay.

Methods summary

__init__(source_currency, ...)

source_currency: str

Lower-case source currency ticker, e.g. eur or jpy.

usd_per_source_currency: float

USD per one source_currency unit.

date: datetime.date

Currency API calendar date for usd_per_source_currency.

source: str

Currency API provider/source column.

is_stale: bool

True when the FX row is older than the accepted refresh delay.

__init__(source_currency, usd_per_source_currency, date, source, is_stale)
Parameters
Return type

None