-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Error during sync China stock data from yahoo. #1906
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
Labels
bug
Something isn't working
Comments
qlib/scripts/data_collector/utils.py Line 205 in e7a1b5e
This API only returns 100 items now.Here is a fix:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Description
Error during sync China stock data from yahoo.
To Reproduce
Steps to reproduce the behavior:
| INFO | collector:get_instrument_list:207 - get HS stock symbols......
Traceback (most recent call last):
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/yahoo/collector.py", line 1021, in
fire.Fire(Run)
File "/home/cai/miniconda3/lib/python3.12/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cai/miniconda3/lib/python3.12/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/home/cai/miniconda3/lib/python3.12/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/yahoo/collector.py", line 988, in update_data_to_bin
self.download_data(delay=delay, start=trading_date, end=end_date, check_data_length=check_data_length)
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/yahoo/collector.py", line 802, in download_data
super(Run, self).download_data(max_collector_count, delay, start, end, check_data_length, limit_nums)
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/base.py", line 402, in download_data
_class(
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/yahoo/collector.py", line 86, in init
super(YahooCollector, self).init(
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/base.py", line 80, in init
self.instrument_list = sorted(set(self.get_instrument_list()))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/yahoo/collector.py", line 208, in get_instrument_list
symbols = get_hs_stock_symbols()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/utils.py", line 235, in get_hs_stock_symbols
symbols |= _get_symbol()
^^^^^^^^^^^^^
File "/home/cai/Desktop/myprogram/git/qlib/scripts/data_collector/utils.py", line 219, in _get_symbol
raise ValueError("The complete list of stocks is not available.")
ValueError: The complete list of stocks is not available.
Expected Behavior
Screenshot
Environment
Note: User could run
cd scripts && python collect_info.py all
under project directory to get system informationand paste them here directly.
Windows
,Linux
,MacOS
): Ubuntu LinuxThe text was updated successfully, but these errors were encountered: