Copy dataframe in interfac.py (reduces memory consumption)

This commit is contained in:
Matthias 2019-11-04 20:19:43 +01:00
parent 2915917680
commit 3fcd531eac

View File

@ -468,7 +468,7 @@ class IStrategy(ABC):
Creates a dataframe and populates indicators for given candle (OHLCV) data Creates a dataframe and populates indicators for given candle (OHLCV) data
Used by optimize operations only, not during dry / live runs. Used by optimize operations only, not during dry / live runs.
""" """
return {pair: self.advise_indicators(pair_data, {'pair': pair}) return {pair: self.advise_indicators(pair_data.copy(), {'pair': pair})
for pair, pair_data in data.items()} for pair, pair_data in data.items()}
def advise_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: def advise_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: