waditu / tushare

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

用pro_bar调用分钟数据线数据报错 #1282

Closed bizeasy17 closed 4 years ago

bizeasy17 commented 4 years ago

e.g. df = ts.pro_bar( ts_code='000001.SZ', freq='60', adj='qfq', start_date='20181001', end_date='20181011') 报错信息如下 local variable 'data' referenced before assignment local variable 'data' referenced before assignment local variable 'data' referenced before assignment Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tushare/pro/data_pro.py", line 189, in pro_bar raise IOError('ERROR.') OSError: ERROR.

jimmysoa commented 4 years ago

freq='60min'

另外,请保持tushare最新版