Skip to content

csi300成份股csi300.txt部分数据有冲突 #1922

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

Open
17hhh opened this issue May 8, 2025 · 3 comments
Open

csi300成份股csi300.txt部分数据有冲突 #1922

17hhh opened this issue May 8, 2025 · 3 comments
Labels
question Further information is requested

Comments

@17hhh
Copy link

17hhh commented May 8, 2025

❓ Questions and Help

Image
通过cn_index中collector.py获取csi300指数成份股2008年到2025年的数据,发现其中部分股票的年份有误,怎么才能拿到无误的数据呢?

@17hhh 17hhh added the question Further information is requested label May 8, 2025
@SunsetWolf
Copy link
Collaborator

I tried to generate csi300.txt with the command python collector.py --index_name CSI300 --qlib_dir ~/.qlib/qlib_data/cn_data --method parse_instruments, and I didn't find the problem you mentioned in it.

@17hhh
Copy link
Author

17hhh commented May 14, 2025

Thank you for your response. I tried the command again as mentioned above. Could you please take a look at the stock SH600023? There are data for two time periods: from 6/16/2014 to 6/12/2020, and from 1/1/2005 to 5/14/2025. It's evident that these two time periods overlap. The issue would be more apparent if the stocks were sorted.

@SunsetWolf
Copy link
Collaborator

I found this problem, would you like to fix it? Contributing your code is very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants