Skip to content
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

关于国证指数行情源 #17

Open
kuangtu opened this issue Apr 17, 2020 · 3 comments
Open

关于国证指数行情源 #17

kuangtu opened this issue Apr 17, 2020 · 3 comments

Comments

@kuangtu
Copy link
Contributor

kuangtu commented Apr 17, 2020

看了一下universal.py中,应该只是深圳指数,399为主。
国证指数http://www.cnindex.com.cn/index.html 可以认为是深交所旗下的指数机构,也有部分代码为非399开头的,比如:980028(龙头家电)等。
这个源也可以一起讨论一下。

@refraction-ray
Copy link
Owner

哇,国证的网站比中证良心多了(玩笑==)
这个不止全部历史数据,历史成分股权重都能看到。我刚看了,爬取应该没任何难度,网页和数据都很规范。要是中证指数历史成分股权重能看到就好了,计算指数历史估值就不需要用聚宽数据源了。

@kuangtu
Copy link
Contributor Author

kuangtu commented Apr 17, 2020

速度,跪了!
扫了一眼代码。“ # TODO: 是否有这些列不全的国证指数?”从理论上来讲,会出现,其他指数也会出现。
指数从发布的角度可以分为:real time和close。 通常real time的值最高、最低字段才有意义。close类型的通常之后收盘点位、成交量等字段。

@refraction-ray
Copy link
Owner

嗯,是的,应该是有那种每天只公布一个数的指数,不过我没大规模测,所以即使知道有这种指数,也不清楚其返回的数据具体格式什么样,除非找到个具体指数,才能完善这里的处理逻辑。

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

No branches or pull requests

2 participants