-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
获取开放型基金净值数据 错误 #758
Comments
https://github.com/waditu/tushare/blob/master/tushare/fund/nav.py#L64 如果这里请求超时 nums = _get_fund_num(ct.SINA_NAV_COUNT_URL %
(ct.P_TYPE['http'], ct.DOMAINS['vsf'],
ct.NAV_OPEN_KEY[fund_type],
ct.NAV_OPEN_API[fund_type],
ct.NAV_OPEN_T2[fund_type],
ct.NAV_OPEN_T3)) nums 为 None limit_cnt = int(nums/pages)+1 会抛出
|
可直接提供pull request |
Open
已提交 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/waditu/tushare/blob/master/tushare/fund/nav.py#L76
这里直接
return fund_dfs
可以修复此问题The text was updated successfully, but these errors were encountered: