1.08K 浏览
0

在使用天勤量化之前,默认您已经知晓并同意以下免责条款,如果不同意请立即停止使用:https://www.shinnytech.com/blog/disclaimer/
Traceback (most recent call last):
File “D:/Q_YANGL/TQ_MA/回测.py”, line 14, in <module>
api = TqApi(acc, backtest=TqBacktest(start_dt=date(2021, 1, 1), end_dt=date(2022, 2, 25)),auth=TqAuth(“laolu123”, “11111111”))
File “C:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py”, line 289, in __init__
if not self.wait_update(deadline=deadline): # 等待连接成功并收取截面数据
File “C:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py”, line 1889, in wait_update
self._run_until_task_done(task=update_task, deadline=deadline)
File “C:\ProgramData\Anaconda3\lib\site-packages\tqsdk\baseApi.py”, line 88, in _run_until_task_done
self._run_once()
File “C:\ProgramData\Anaconda3\lib\site-packages\tqsdk\baseApi.py”, line 57, in _run_once
raise self._exceptions.pop(0)
File “C:\ProgramData\Anaconda3\lib\site-packages\tqsdk\connect.py”, line 143, in _run
async with websockets.connect(url, **self._keywords) as client:
File “C:\ProgramData\Anaconda3\lib\site-packages\websockets\legacy\client.py”, line 633, in __aenter__
return await self
File “C:\ProgramData\Anaconda3\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:\ProgramData\Anaconda3\lib\asyncio\tasks.py”, line 501, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError

李思恒 已回答的问题 2022年2月28日
0

这个看不出来问题这些报错,看起来就是回测技术了然后异常退出

李思恒 已回答的问题 2022年2月28日