-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
sync dev -> main #1661
Merged
Merged
sync dev -> main #1661
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adjust PEP 8 + minor improvement
Several improvements to price repair Repair 100x and split errors: - Handle stocks that recently suspended - use latest ACTIVE trading as baseline - Improve error identification: - Restrict repair to no older than 1 year before oldest split - To reduce false positives when checking for multiday split errors, only analyse 'Open' and 'Close' and use average change instead of nearest-to-1 - For weekly intervals reduce threshold to 3x standard deviation (5x was too high), and for monthly increase to 6x - For multiday intervas, if errors only detected in 1 column then assume false positive => ignore Repair missing div-adjust: - Fix repair of multiday intervals containing dividend Price reconstruction: - Move to after repairing 100x and split errors, so calibration works properly - Fix maximum depth and reduce to 1 - Restrict calibration to 'Open' and 'Close', because 'Low' and 'High' can differ significantly between e.g. 1d and day-of-1h Miscellaneous: - Deprecate repair='silent', the logging module handles this - Improve tests for 100x and split errors - New test for 'repair missing div adjust'
Fix typo in Ticker.history(30m)
Adjust PEP 8 + minor improvements + f-strings in base.py
PEP 8 changes + minor performance improvements
option_chain() return underlying data that comes with the options data
Improve bad-split-repair on multiday intervals Switch some repair log msgs from warning -> info
…ments Improve price repair
Commit a4d7d6 introduced a circular import into utils.py
Fix circular import in utils.py
Price repair fixes and improvement Fixes: - fix reconstruction mis-calibration with tiny DataFrames - fix detecting last-active-trading-interval when NaNs in DataFrame - redesign mapping 100x signals to ranges: - no change for signals before last-active-trading-interval - but for signals after last-active-trading-interval, process in reverse order Improvements: - increase max reconstruction depth from 1 to 2. E.g. now 1wk can be repaired with 1h (1wk->1d->1h)
…libration Fix price repair: 100x & calibration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes: