CSVDailyBarDataSource.get_assets_historical_closes does not accept the parameter "adjusted".
BacktestDataHandler.get_assets_historical_range_close_price attempts to pass the parameter "adjusted" to CSVDailyBarDataSource, which throws an error.
def get_assets_historical_range_close_price(
self, start_dt, end_dt, asset_symbols, adjusted=False
):
"""
"""
prices_df = None
for ds in self.data_sources:
try:
prices_df = ds.get_assets_historical_closes(
start_dt, end_dt, asset_symbols, adjusted=adjusted
)
if prices_df is not None:
return prices_df
except Exception:
raise
return prices_df