waditu / tushare

TuShare is a utility for crawling historical data of China stocks
BSD 3-Clause "New" or "Revised" License
12.91k stars 4.29k forks source link

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

Open vvmbit opened 5 days ago

vvmbit commented 5 days ago

数据问题:接口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