SparklineData
Documentation for eth_defi.research.sparkline.SparklineData Python class.
- class SparklineData
Bases:
objectDaily closing prices, the initial observation and fixed chart bounds.
Charts span
DEFAULT_SPARKLINE_WINDOWunless a caller supplies a different window, and end at the latest valid observation. A younger vault occupies only the right-hand side; the period before its first observation remains blank.Attributes summary
Valid daily closing prices and the initial price.
Inclusive left edge of the chart.
Inclusive right edge and latest valid observation timestamp.
Methods summary
__init__(prices_df, start_at, end_at)- prices_df: pandas.DataFrame
Valid daily closing prices and the initial price. Established sparse vaults include one carried observation at
start_at.
- start_at: pandas.Timestamp
Inclusive left edge of the chart.
- end_at: pandas.Timestamp
Inclusive right edge and latest valid observation timestamp.
- __init__(prices_df, start_at, end_at)
- Parameters
prices_df (pandas.DataFrame) –
start_at (pandas.Timestamp) –
end_at (pandas.Timestamp) –
- Return type
None