feat(data_collector): add JP (TSE Prime domestic stocks) support to Yahoo collector (1d)#2138
Open
kei-yamazaki wants to merge 1 commit intomicrosoft:mainfrom
Open
feat(data_collector): add JP (TSE Prime domestic stocks) support to Yahoo collector (1d)#2138kei-yamazaki wants to merge 1 commit intomicrosoft:mainfrom
kei-yamazaki wants to merge 1 commit intomicrosoft:mainfrom
Conversation
This file contains hidden or 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
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.
Description
This PR adds
JPsupport to Yahoo data collector for daily frequency (1d) with TSE Prime domestic stocks.It introduces JP symbol loading from JPX, JP collector/normalizer classes, and explicit non-support errors for JP
1min.It also updates related documentation and adds JP-focused tests.
Motivation and Context
JP was not supported in the Yahoo collector flow for daily data collection/normalization.
This change enables an official JP path and makes unsupported JP
1minbehavior explicit.Related issue: N/A
How Has This Been Tested?
pytest qlib/tests/test_all_pipeline.pyunder upper directory ofqlib.Executed tests (concise):
python -m pytest -q tests/test_yahoo_collector_jp.py(7 passed)limit_nums=1):download_data --region JP --interval 1d✅normalize_data --region JP --interval 1d✅normalize_data_1d_extend --region JP --interval 1d✅update_data_to_bin --region JP --interval 1d --limit_nums 1✅--region JP --interval 1minreturns expectedValueError✅normalize_data --region CN --interval 1d✅normalize_data --region US --interval 1d✅normalize_data --region BR --interval 1d✅Screenshots of Test Results (if appropriate):
Not run for this PR.
CLI outputs were verified for the commands listed above.
Types of changes