chore: improved naming for method

This commit is contained in:
Matthias
2025-10-15 18:17:30 +02:00
parent a745136190
commit 6bd7fdb8ac

View File

@@ -273,7 +273,7 @@ class Backtesting:
self.futures_data: dict[str, DataFrame] = {}
def init_backtest(self):
self.prepare_backtest(False)
self.reset_backtest(False)
self.wallets = Wallets(self.config, self.exchange, is_backtest=True)
@@ -427,7 +427,7 @@ class Backtesting:
def disable_database_use(self):
disable_database_use(self.timeframe)
def prepare_backtest(self, enable_protections):
def reset_backtest(self, enable_protections):
"""
Backtesting setup method - called once for every call to "backtest()".
"""
@@ -1692,7 +1692,7 @@ class Backtesting:
:param end_date: backtesting timerange end datetime
:return: DataFrame with trades (results of backtesting)
"""
self.prepare_backtest(self.enable_protections)
self.reset_backtest(self.enable_protections)
# Ensure wallets are up-to-date (important for --strategy-list)
self.wallets.update()
# Use dict of lists with data for performance