microsoft / microsoft/qlib

HS_SYMBOLS_URL 404

Open
#1,757 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🐛 Bug Description

The URL used in scripts/data_collector/utils.py is dead.

To Reproduce

Steps to reproduce the behavior:

  1. run collector.py under scripts/data_collector/pit
  2. it gets stuck after logging "get cn stock symbols....."
  3. debug finds that requests.get(HS_SYMBOLS_URL.format(s_type=_k), timeout=None) gets 404 response.

Expected Behavior

HS_SYMBOLS_URL return right symbols

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: "0.9.3.99"
  • Python version: 3.8
  • OS (Windows, Linux, MacOS):MacOS

Additional Notes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with scripts/data_collector/utils.py and inspect HS_SYMBOLS_URL, then reproduce the failure by running collector.py under scripts/data_collector/pit or cd scripts && python collect_info.py all. Done means the collector no longer receives a 404 and can retrieve the expected Chinese stock symbols.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.