首页 天天基金网爬虫
文章
取消

天天基金网爬虫

天天基金网API

所有基金名称列表代码

http://fund.eastmoney.com/js/fundcode_search.js

所有基金公司名称列表代码

http://fund.eastmoney.com/js/jjjz_gs.js?dt=1463791574015

基金实时信息

http://fundgz.1234567.com.cn/js/001186.js?rt=1463558676006

001186为基金代号

返回值:jsonpgz({“fundcode”:”001186”,”name”:”富国文体健康股票”,”jzrq”:”2016-05-17”,”dwjz”:”0.7420”,”gsz”:”0.7251”,”gszzl”:”-2.28”,”gztime”:”2016-05-18 15:00”});

基金详细信息

http://fund.eastmoney.com/pingzhongdata/001186.js?v=20160518155842

天天基金网历史净值数据的页面地址是 http://fund.eastmoney.com/f10/F10DataApi.aspx?type=lsjz&code=110022&sdate=2018-02-22&edate=2018-03-02&per=20 参数说明如下:

type 类型,历史净值用lsjz表示 code 基金代码,六位数字 sdate 开始日期,格式是yyyy-mm-dd edate 结束日期,格式是yyyy-mm-dd per 一页显示多少条记录

https://www.cnblogs.com/wsygdb/p/8316531.html

https://github.com/weibycn/fund

每个基金的历史净值

https://www.codercto.com/a/24185.html

天天基金的历史净值也可以通过API直接获取,请求一直基金的历史净值的API如下所示:

const uri = “http://fund.eastmoney.com/f10/F10DataApi.aspx?type=lsjz&code=%s&page=1&per=%s”

Util.format(uri, code, records), 请求参数中的 code 为基金的编码, per 为历史净值数据量。

天天基金网估值数据接口:http://j4.dfcfw.com/charts/pic6/基金代码.png

例如:

中邮战略新兴产品混合的实时净值估算图:

http://j4.dfcfw.com/charts/pic6/590008.png

本文由作者按照 CC BY 4.0 进行授权