Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling BacktestDataHandler.get_assets_historical_range_close_price issue #403

Open
hubert94536 opened this issue Mar 5, 2025 · 0 comments

Comments

@hubert94536
Copy link

hubert94536 commented Mar 5, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant