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

Polygon day fix #446

Open
wants to merge 68 commits into
base: dev
Choose a base branch
from
Open

Polygon day fix #446

wants to merge 68 commits into from

Conversation

Canx
Copy link
Collaborator

@Canx Canx commented May 10, 2024

This fixes day polygon backtesting and problems with it's cache.

Please, don't merge till I add more tests!

Canx and others added 30 commits May 3, 2024 13:13
timeshift: int = None,
quote: Asset = None,
exchange: str = None,
include_after_hours: bool = True,
):
if timestep is None:
raise ValueError("'timestep' argument is mandatory in _pull_source_symbol_bars.")
Copy link
Collaborator

@jimwhite jimwhite May 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way to do this is to remove the = None default in the parameter definition.

But why are you preventing the use of the PandasData._timestep default? I know I said folks ought to usually want a specific timestep for their strategy use but that doesn't mean the library code can know what that is.

So I agree that using None is a better default than "" but preventing the default from working doesn't make much sense to me. If there is something borked in the default handling then it should be fixed not removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants