我正在使用以下代码下载 NSE 股票数据(印度股票):
from alpha_vantage.timeseries import TimeSeries
ts = TimeSeries(key='my api key',output_format='pandas')
data, meta_data = ts.get_daily_adjusted(symbol='VEDL.NS', outputsize='full')
data.to_csv('/content/gdrive/My Drive/ColabNotebooks/NSEDATA/VEDL.NS.csv')
现在我得到
ValueError Traceback (most recent call last)
<ipython-input-11-d1a160a06338> in <module>()
1 i='VEDL'
----> 2 data, meta_data = ts.get_daily_adjusted(symbol='{0}.NS'.format(i), outputsize='full')
3 data.to_csv('/content/gdrive/My Drive/Colab Notebooks/NSEDATA/{0}.csv'.format(i))
2 frames
/usr/local/lib/python3.6/dist-packages/alpha_vantage/alphavantage.py in _handle_api_call(self, url)
333 if not json_response:
334 raise ValueError(
--> 335 'Error getting data from the api, no return was given.')
336 elif "Error Message" in json_response:
337 raise ValueError(json_response["Error Message"])
ValueError: Error getting data from the api, no return was given.
我已经使用上面的 api 3 个月了,从那时起它一直在工作。请帮我