783 浏览
0

traceback打印出来的信息如下,这是什么原因呢

quote=api.get_quote(symbol_name)
File “C:\veighna_studio\lib\site-packages\tqsdk\api.py”, line 429, in get_quote
return self.get_quote_list([symbol])[0]
File “C:\veighna_studio\lib\site-packages\tqsdk\api.py”, line 480, in get_quote_list
if not self.wait_update(deadline=deadline, _task=quote_list._task):
File “C:\veighna_studio\lib\site-packages\tqsdk\api.py”, line 1872, in wait_update
self._run_until_idle(async_run=False)
File “C:\veighna_studio\lib\site-packages\tqsdk\baseApi.py”, line 67, in _run_until_idle
self._run_once()
File “C:\veighna_studio\lib\site-packages\tqsdk\baseApi.py”, line 57, in _run_once
raise self._exceptions.pop(0)
File “C:\veighna_studio\lib\site-packages\tqsdk\connect.py”, line 143, in _run
async with websockets.connect(url, **self._keywords) as client:
File “C:\veighna_studio\lib\site-packages\websockets\legacy\client.py”, line 633, in __aenter__
return await self
File “C:\veighna_studio\lib\site-packages\websockets\legacy\client.py”, line 650, in __await_impl_timeout__
return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
File “C:\veighna_studio\lib\asyncio\tasks.py”, line 458, in wait_for
raise exceptions.TimeoutError() from exc

李思恒 已回答的问题 2022年8月12日