SparklineData

Documentation for eth_defi.research.sparkline.SparklineData Python class.

class SparklineData

Bases: object

Daily closing prices, the initial observation and fixed chart bounds.

Charts span DEFAULT_SPARKLINE_WINDOW unless 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

prices_df

Valid daily closing prices and the initial price.

start_at

Inclusive left edge of the chart.

end_at

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
Return type

None