mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 12:51:14 +00:00
Use set to reduce iterations
This commit is contained in:
@@ -2169,7 +2169,7 @@ class Exchange:
|
|||||||
Should only be used for pairlists which need "on time" expirarion, and no longer cache.
|
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:
|
for timeframe in timeframes:
|
||||||
if timeframe not in self._expiring_candle_cache:
|
if timeframe not in self._expiring_candle_cache:
|
||||||
timeframe_in_sec = timeframe_to_seconds(timeframe)
|
timeframe_in_sec = timeframe_to_seconds(timeframe)
|
||||||
|
|||||||
Reference in New Issue
Block a user