1.93K 浏览
0

Traceback (most recent call last):
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\threading.py”, line 954, in _bootstrap_inner
self.run()
File “d:\TqStrategy\autoRun\luzhengrun\dayTrade\test\superTurtleStrategy_dayTrade_luzheng_ali-v10-new-test.py”, line 1310, in run
api = TqApi(backtest=TqReplay(replay_dt=date(2022, 2, 15)), web_gui=True, auth=TqAuth(“friendmiao”, “m990681”)) # 连接天勤快期模拟盘账号
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\api.py”, line 290, in __init__
self._setup_connection() # 初始化通讯连接
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\api.py”, line 3137, in _setup_connection
self._ins_url, self._md_url = self._backtest._create_server(self)
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\backtest.py”, line 788, in _create_server
session = self._prepare_session()
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\backtest.py”, line 819, in _prepare_session
response = requests.post(create_session_url,
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py”, line 119, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py”, line 542, in request
resp = self.send(prep, **send_kwargs)
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py”, line 655, in send
r = adapter.send(request, **kwargs)
File “C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py”, line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host=’replay.api.shinnytech.com’, port=80): Max retries exceeded with url: /t/rmd/replay/create_session (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x00000142ABCDD3D0>, ‘Connection to replay.api.shinnytech.com timed out. (connect timeout=5)’))

wawawa 已回答的问题 2022年5月4日
0

请问复盘功能啥时候恢复?

wawawa 已回答的问题 2022年5月4日
0

是的,暂时停止使用了,在升级中

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