Use set to reduce iterations

This commit is contained in:
Matthias 2024-02-22 05:55:05 +01:00
parent 621e497e7b
commit 4e87169a0c

View File

@ -2169,7 +2169,7 @@ class Exchange:
Should only be used for pairlists which need "on time" expirarion, and no longer cache.
"""
timeframes = [p[1] for p in pairs]
timeframes = {p[1] for p in pairs}
for timeframe in timeframes:
if timeframe not in self._expiring_candle_cache:
timeframe_in_sec = timeframe_to_seconds(timeframe)