4.04K 浏览
0

D:\software\Anaconda3\python.exe “D:\software\PyCharm 2018.3.5\helpers\pydev\pydevd.py” –multiproc –qt-support=auto –client 127.0.0.1 –port 57106 –file D:/data/learn/trade/stockPro/djangoManager/djangoManager/tqNew.py
pydev debugger: process 7440 is connecting

Connected to pydev debugger (build 183.5912.18)
WARNING – 开始启动复盘服务器,请稍候。
Traceback (most recent call last):
File “D:\software\PyCharm 2018.3.5\helpers\pydev\pydevd.py”, line 1741, in <module>
main()
File “D:\software\PyCharm 2018.3.5\helpers\pydev\pydevd.py”, line 1735, in main
globals = debugger.run(setup[‘file’], None, None, is_module)
File “D:\software\PyCharm 2018.3.5\helpers\pydev\pydevd.py”, line 1135, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File “D:\software\PyCharm 2018.3.5\helpers\pydev\_pydev_imps\_pydev_execfile.py”, line 18, in execfile
exec(compile(contents+”\n”, file, ‘exec’), glob, loc)
File “D:/data/learn/trade/stockPro/djangoManager/djangoManager/tqNew.py”, line 101, in <module>
tqFourthTrade()
File “D:/data/learn/trade/stockPro/djangoManager/djangoManager/tqNew.py”, line 19, in tqFourthTrade
api = TqApi(TqSim(5000), backtest=TqReplay(replay_dt =date(2020, 1, 16)), web_gui=True)
File “D:\software\Anaconda3\lib\site-packages\tqsdk\api.py”, line 244, in __init__
self._setup_connection() # 初始化通讯连接
File “D:\software\Anaconda3\lib\site-packages\tqsdk\api.py”, line 1165, in _setup_connection
self._ins_url, self._md_url = self._backtest._create_server(self)
File “D:\software\Anaconda3\lib\site-packages\tqsdk\backtest.py”, line 492, in _create_server
raise Exception(“无法创建复盘服务器,请检查复盘日期后重试。”)
Exception: 无法创建复盘服务器,请检查复盘日期后重试。

ringo 已回答的问题 2020年1月16日
0

刚刚测试是ok的~试试是不是复盘指定日期不行,如果是当日的话,需等夜盘前行情服务器运维完成才可以复盘

ding yi 发表新评论 2020年1月16日

嗯,确实是不能复盘今天的~