SourceCurrencyRate
Documentation for eth_defi.feed.stablecoin_rate.SourceCurrencyRate Python class.
- class SourceCurrencyRate
Bases:
objectUSD/source-currency rate read from the local currency DuckDB.
Attributes summary
Lower-case source currency ticker, e.g.
USD per one
source_currencyunit.Currency API calendar date for
usd_per_source_currency.Currency API provider/source column.
Truewhen 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.
eurorjpy.
- usd_per_source_currency: float
USD per one
source_currencyunit.
- date: datetime.date
Currency API calendar date for
usd_per_source_currency.
- source: str
Currency API provider/source column.
- is_stale: bool
Truewhen the FX row is older than the accepted refresh delay.
- __init__(source_currency, usd_per_source_currency, date, source, is_stale)
- Parameters
source_currency (str) –
usd_per_source_currency (float) –
date (datetime.date) –
source (str) –
is_stale (bool) –
- Return type
None