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']
|
quoteVolume = (pair_candles['quoteVolume']
|
||||||
.rolling(self._lookback_period)
|
.rolling(self._lookback_period)
|
||||||
.sum()
|
.sum()
|
||||||
|
.fillna(0)
|
||||||
.iloc[-1])
|
.iloc[-1])
|
||||||
|
|
||||||
# replace quoteVolume with range quoteVolume sum calculated above
|
# replace quoteVolume with range quoteVolume sum calculated above
|
||||||
|
|||||||
Reference in New Issue
Block a user