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

600372.SH、600732.SH 某时段历史复权因子数据缺失 #1756

Open
vvmbit opened this issue Nov 27, 2024 · 0 comments
Open

600372.SH、600732.SH 某时段历史复权因子数据缺失 #1756

vvmbit opened this issue Nov 27, 2024 · 0 comments

Comments

@vvmbit
Copy link

vvmbit commented Nov 27, 2024

数据问题:接口pro_bar()在获取600372.SH、600732.SH 某时段历史(2009-2016期间)的1分钟K线包含复权因子的K线数据报错,看日志和代码应该是未找到相应的复权因子数据,在以下代码段返回None. 2016年后的1min数据没有问题。
if adj is not None:
fcts = api.adj_factor(ts_code=ts_code, start_date=start_date, end_date=end_date)[['trade_date', 'adj_factor']]
if fcts.shape[0] == 0:
return None

tushare id: 697269

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

1 participant