一直在尝试查询盘中系列,但调用失败并出现以下错误。
有人可以帮我解决这个错误吗?
代码非常简单,只需从 API 查询 USG 股票代码 1 分钟间隔
数据,meta_data = av_ts.get_intraday(symbol='USG',interval='1min', outputsize='full')
这是错误:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-12-3e7fe1bd42d0> in <module>()
----> 1 data, meta_data = av_ts.get_intraday(symbol='USG',interval='1min', outputsize='full')
c:\users\sampleuser\appdata\local\programs\python\python36\lib\site-packages\alpha_vantage\alphavantage.py in _format_wrapper(self, *args, **kwargs)
175 if 'json' in self.output_format.lower() or 'pandas' \
176 in self.output_format.lower():
--> 177 data = call_response[data_key]
178 if meta_data_key `enter code here`is not None:
179 meta_data = call_response[meta_data_key]
KeyError: 'Time Series (1min)'