Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pytrade/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down