vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 107
声望: 1

Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Anaconda3\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Anaconda3\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Anaconda3\lib\site-packages\vnpy\event\engine.py", line 60, in _run
self._process(event)
File "C:\Anaconda3\lib\site-packages\vnpy\event\engine.py", line 73, in _process
[handler(event) for handler in self._handlers[event.type]]
File "C:\Anaconda3\lib\site-packages\vnpy\event\engine.py", line 73, in <listcomp>
[handler(event) for handler in self._handlers[event.type]]
File "C:\Anaconda3\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 157, in process_tick_event
self.check_stop_order(tick)
File "C:\Anaconda3\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 270, in check_stop_order
stop_order.lock
File "C:\Anaconda3\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 366, in send_limit_order
lock
File "C:\Anaconda3\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 318, in send_server_order
reference=f"{APPNAME}{strategy.strategy_name}"
TypeError: init() missing 1 required positional argument: 'volume'

Member
avatar
加入于:
帖子: 107
声望: 1

应该是出现在委托下单交易时

Member
avatar
加入于:
帖子: 2415
声望: 149

可以查一下你的OrderRequest里面是不是没有volume

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

沪公网安备 31011502017034号