-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Bug Description
Error loading us data with yahoo collector. It failed at the utils._get_eastmoney() method.
To Reproduce
python collector.py download_data --source_dir ~/.qlib/stock_data/source/us_data --start 2020-01-01 --end 2020-12-31 --delay 1 --interval 1d --region US
Root cause
It tries to use the following URL to fetch the stock catalog for us market http://4.push2delay.eastmoney.com/api/qt/clist/get?pn=1&pz=10000&fs=m:105,m:106,m:107&fields=f12
Though the page size is specified to 10000, it only returns max 100 items now. Then the following code just through request error.
if len(_symbols) < 8000:
raise ValueError("request error")
Environment
Note: User could run cd scripts && python collect_info.py all
under project directory to get system information
and paste them here directly.
- Qlib version: latest master
- Python version: 3.12
- OS (
Windows
,Linux
,MacOS
): Linux - Commit number (optional, please provide it if you are using the dev version):
Additional Notes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working