VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 12
声望: 0

Traceback (most recent call last):
File "c:\ganfanji.py", line 349, in <module>
api.wait_update()
File "c:\veighna_studio\lib\site-packages\tqsdk\api.py", line 1898, in wait_update
self._run_until_task_done(task=update_task, deadline=deadline)
File "c:\veighna_studio\lib\site-packages\tqsdk\baseApi.py", line 88, in _run_until_task_done
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 157, in _run
async with websockets.connect(url, **self._keywords) as client:
File "c:\veighna_studio\lib\site-packages\websockets\legacy\client.py", line 637, in aenter
return await self
File "c:\veighna_studio\lib\site-packages\websockets\legacy\client.py", line 654, in await_impl_timeout
async with asyncio_timeout(self.open_timeout):
File "c:\veighna_studio\lib\site-packages\websockets\legacy\async_timeout.py", line 169, in aexit
self._do_exit(exc_type)
File "c:\veighna_studio\lib\site-packages\websockets\legacy\async_timeout.py", line 252, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

Member
avatar
加入于:
帖子: 1401
声望: 92

TimeoutError比较多情况是网络连接不通导致的,可以排查下网络

Member
avatar
加入于:
帖子: 12
声望: 0

大佬 我的程序是30秒一更新API 是不是这个原因导致断掉的?

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】