mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Use set to reduce iterations
This commit is contained in:
parent
621e497e7b
commit
4e87169a0c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user