diff --git a/pytrade/data.py b/pytrade/data.py index 86c4def..58a2638 100644 --- a/pytrade/data.py +++ b/pytrade/data.py @@ -121,7 +121,9 @@ def __new__(cls, *args, **kwargs): # Need to handle case where instantiatied and different max size is provided return cls.instance - def get(self, instrument: Instrument, granularity: Granularity): + def get( + self, instrument: Instrument, granularity: Granularity + ) -> InstrumentCandles: key = (instrument, granularity) instrument_candles: InstrumentCandles = self._data.get( key, InstrumentCandles(max_size=self._max_size)