fix bug with database url during backtesting. comment out example trade db analysis.
This commit is contained in:
@@ -85,9 +85,10 @@ class FreqaiDataKitchen:
|
||||
config["freqai"]["backtest_period_days"],
|
||||
)
|
||||
|
||||
db_url = self.config.get('db_url', None)
|
||||
self.database_path = '' if db_url == 'sqlite://' else str(db_url).split('///')[1]
|
||||
self.trade_database_df: DataFrame = pd.DataFrame()
|
||||
if self.live:
|
||||
db_url = self.config.get('db_url', 'sqlite://')
|
||||
self.database_path = '' if db_url == 'sqlite://' else str(db_url).split('///')[1]
|
||||
self.trade_database_df: DataFrame = pd.DataFrame()
|
||||
|
||||
self.data['extra_returns_per_train'] = self.freqai_config.get('extra_returns_per_train', {})
|
||||
|
||||
|
Reference in New Issue
Block a user