vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 114
声望: 14

Traceback (most recent call last):
File "D:\ProgramFiles\VnStudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
main_engine.add_app(app)
File "D:\ProgramFiles\VnStudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
engine = self.add_engine(app.engine_class)
File "D:\ProgramFiles\VnStudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
engine = engine_class(self, self.event_engine)
File "D:\ProgramFiles\VnStudio\lib\site-packages\vnpy\app\chart_wizard\engine.py", line 24, in init
rqdata_client.init()
File "D:\ProgramFiles\VnStudio\lib\site-packages\vnpy\trader\rqdata.py", line 62, in init
max_pool_size=1
File "D:\ProgramFiles\VnStudio\lib\site-packages\rqdatac\client.py", line 167, in init
remaining_days = quota["remaining_days"]
TypeError: 'NoneType' object is not subscriptable

Member
avatar
加入于:
帖子: 114
声望: 14

知道错误了,因为策略策略错误,导致vnpy崩溃。再次启动vnpy,想再次进入Vn Trader Pro就会重新rqdatac的连接不上,出现remaining_days = quota["remaining_days"]返回为None的问题。

同一电脑上,应该考虑vnpy不可以多次启动的问题,已经启动登录之后,拒绝再次登录就不会出现这个问题。

Administrator
avatar
加入于:
帖子: 4028
声望: 221

杀掉那个挂了的Python进程,稍等一会rqdatac就会自动判断你退出了,此时可以再连

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