08. 私募基金数据
PKUJohnson edited this page Dec 20, 2018
·
1 revision
OpenDataTools通过hedgefund接口,支持私募基金数据的获取,要求版本0.5.1以上。
数据来源:私募排排网
from opendatatools import hedgefund
- 登录,需要在排排网注册用户
hedgefund.login('18612562791', 'xxxxxx')
- 加载基金列表数据(过程比较慢)
hedgefund.load_data()
- 获得基金列表
fund_list, msg = hedgefund.get_fund_list()
- 获取基金净值信息。
# fund_id从上面的get_fund_list接口中得到
df, msg = hedgefund.get_fund_nav('HF0000141Y')
df