mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 10:33:08 +00:00
Fix bug in volumepairlist if lookback is bigger than the available candles (new pairs)
closes #9154
This commit is contained in:
@@ -260,6 +260,7 @@ class VolumePairList(IPairList):
|
||||
quoteVolume = (pair_candles['quoteVolume']
|
||||
.rolling(self._lookback_period)
|
||||
.sum()
|
||||
.fillna(0)
|
||||
.iloc[-1])
|
||||
|
||||
# replace quoteVolume with range quoteVolume sum calculated above
|
||||
|
||||
Reference in New Issue
Block a user