Skip to content

contango.stream.indicators.historical_indicator

contango.stream.indicators.historical_indicator

HistoricalIndicator

HistoricalIndicator(source: Indicator[R], window: int)

Bases: HistoricalStream[R], Generic[R]

A historical stream that allows historical access of indicators.

Attributes:

Name Type Description
R

The return type for the historical indicator.

Source code in src\contango\stream\indicators\historical_indicator.py
19
20
21
def __init__(self, source: Indicator[R], window: int) -> None:
    self._source = source
    super().__init__(source=source, window=window)