问答交流

回测没有问题,模拟交易提示rpc timeout错误

由xuesir创建,最终由small_q 被浏览 56 用户

回测一切正常,但是在模拟交易时一直提示下面的错误。请高人指点原因。不胜感激!

错误内容如下:

RpcTimeout Traceback (most recent call last) <ipython-input-1-f009ebd387c9> in <module> 506 ) 507 --> 508 m9 = M.hftrade.v2( 509 instruments=m1.data, 510 options_data=m5.data,

/var/app/enabled/biglearning/module2/common/modulemanagerv2.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.modulemanagerv2.BigQuantModuleVersion.call()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker.module_invoke()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._module_run()

/var/app/enabled/biglearning/module2/modules/hftrade/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.hftrade.v2.init.bigquant_run()

/var/app/enabled/biglearning/module2/modules/hftrade/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.hftrade.v2.init.bigquant_run.do_paper_run()

/var/app/enabled/biglearning/module2/common/modulemanagerv2.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.modulemanagerv2.BigQuantModuleVersion.call()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker.module_invoke()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._module_run()

/var/app/enabled/biglearning/module2/modules/forward_register/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.forward_register.v2.init.BigQuantModule.run()

/var/app/enabled/bigshared/common/service.cpython-38-x86_64-linux-gnu.so in bigshared.common.service.invoke_micro_service()

/var/app/enabled/bigshared/common/service.cpython-38-x86_64-linux-gnu.so in bigshared.common.service.invoke_micro_service2()

/var/app/enabled/bigshared/common/service.cpython-38-x86_64-linux-gnu.so in bigshared.common.service.invoke_micro_service2()

/usr/local/python3/lib/python3.8/site-packages/nameko/rpc.py in call(self, *args, **kwargs) 371 def call(self, *args, **kwargs): 372 reply = self._call(*args, **kwargs) --> 373 return reply.result() 374 375 @property

/usr/local/python3/lib/python3.8/site-packages/nameko/rpc.py in result(self) 324 325 if self.resp_body is None: --> 326 self.resp_body = self.reply_event.wait() 327 _log.debug('RPC reply event complete %s %s', self, self.resp_body) 328

/usr/local/python3/lib/python3.8/site-packages/nameko/standalone/rpc.py in wait(self) 70 # disconnected while waiting 71 if self.exception: ---> 72 raise self.exception 73 return self.body 74

RpcTimeout: 60

标签

模拟交易回测交易
{link}