Skip to content

contango.stream.historical_market_events

contango.stream.historical_market_events

HistoricalMarketEvents

HistoricalMarketEvents(window: int)

Bases: HistoricalStream[MarketDataEvent]

A historical stream of market data events.

Initializes HistoricalMarketEvents.

Parameters:

Name Type Description Default
window int

The maximum amount of lookback for the history of the stream.

required
Source code in src\contango\stream\historical_market_events.py
12
13
14
15
16
17
18
19
def __init__(self, window: int) -> None:
    """
    Initializes `HistoricalMarketEvents`.

    Args:
        window: The maximum amount of lookback for the history of the stream.
    """
    super().__init__(source=_MarketEventRelay(), window=window)