-
Notifications
You must be signed in to change notification settings - Fork 132
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
base: dev
Are you sure you want to change the base?
Polygon day fix #446
Conversation
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.") |
There was a problem hiding this comment.
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.
This fixes day polygon backtesting and problems with it's cache.
Please, don't merge till I add more tests!