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

关于某类基金信息的获取 #16

Open
kuangtu opened this issue Apr 16, 2020 · 6 comments
Open

关于某类基金信息的获取 #16

kuangtu opened this issue Apr 16, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@kuangtu
Copy link
Contributor

kuangtu commented Apr 16, 2020

目前看到的示例主要基于代码进行数据获取和分析。是否有某类查询接口或者后续准备开发:
比如:主题类基金:医药、基建等。输入关键字,得到某类的基金,然后分析其中的收益等。
便于直观了解现在某类基金有哪些ETF、指数基金等。

@refraction-ray
Copy link
Owner

暂时没有这种获取基金列表的接口,也没有特别的近期开发规划。如果做的话,就是基于天天基金的搜索推荐就可以。具体的就是这个: "http://fundsuggest.eastmoney.com/FundSearch/api/FundSearchAPI.ashx?callback=&m=1&key=基建",暂时用的话可以自己包一下,之后我也可能把接口先扔到 xa.misc 里。至于把这个接口怎么设计,怎么放进公开的 API 里,我还没想好。

@kuangtu
Copy link
Contributor Author

kuangtu commented Apr 16, 2020

好的。我也思考一下,对这个需求做个讨论。谢谢!

@refraction-ray
Copy link
Owner

跟进一下获取相关基金列表的这个问题。现在我在 misc 里有两个函数。一个是 xa.misc.get_ttjj_suggestion("基建") 会返回一个关键字有基建的基金及元信息的字典。
另一个是 xa.misc.get_fund_list("hh") 自变量可以是 hh,zq, zs, gp, qdii, fof 分别对应混合,债券,指数,股票型的全部基金列表。具体接口怎么改善,怎么将这些返回基金列表类的功能并入主线,我还是没想好。

@refraction-ray refraction-ray added the enhancement New feature or request label May 22, 2020
@fxyzbtc
Copy link
Contributor

fxyzbtc commented Jul 1, 2020

一个建议,

根据指数来反向查询对应的基金列表是最准确的,这部分数据很规整。
我自己用过的数据源fundsmart,开放的网页,不需要登录。

@refraction-ray
Copy link
Owner

@leeleilei 请问有网站的链接吗,我 google 了一下 fundsmart,没看到相关的内容

@fxyzbtc
Copy link
Contributor

fxyzbtc commented Jul 4, 2020

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

No branches or pull requests

3 participants