VeighNa量化社区
你的开源社区量化交易平台
ning's Avatar
Member
离线
13 帖子
声望: 0

成功连接ctp后,查不到期货的主力合约,请问这是为什么呀

Mac M1在回测模块点击代码编辑无法打开vscode,但是已经将其添加到了系统变量中,并且在终端输入code也能成功打开vscode,请问这个问题应该怎么解决呀
description

我配置全局变量的过程是:
在~/.bash_profile中添加

description

mac m1 vnpy3.6.0 运行run.py提示找不到数据服务驱动vnpy_tushare

description

目前使用的vnpy_tushare版本是1.2.89.0
请问这种情况应该怎么解决呀

Traceback (most recent call last):
File "/Users/zjn_11/Desktop/vnpy-3.6.0/vnpy/trader/ui/mainwindow.py", line 279, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "/Users/zjn_11/Library/Python/3.9/lib/python/site-packages/vnpy_ctastrategy/ui/widget.py", line 41, in init
self.cta_engine.init_engine()
File "/Users/zjn_11/Library/Python/3.9/lib/python/site-packages/vnpy_ctastrategy/engine.py", line 102, in init_engine
self.init_datafeed()
File "/Users/zjn_11/Library/Python/3.9/lib/python/site-packages/vnpy_ctastrategy/engine.py", line 123, in init_datafeed
result: bool = self.datafeed.init(self.write_log)
TypeError: init() takes 1 positional argument but 2 were given

如下是触发异常的详细信息
description

description
如上是对应conda环境的包版本,还请大佬们帮忙看看问题出在哪里

这是进入交易页面,点击左侧'CTA策略'按钮时出现的错误,请问各位大佬有解决的方法吗
Traceback (most recent call last):
File "/Users/zjn_11/Desktop/vnpy-3.6.0/vnpy/trader/ui/mainwindow.py", line 279, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "/Users/zjn_11/Library/Python/3.9/lib/python/site-packages/vnpy_ctastrategy/ui/widget.py", line 41, in init
self.cta_engine.init_engine()
File "/Users/zjn_11/Library/Python/3.9/lib/python/site-packages/vnpy_ctastrategy/engine.py", line 102, in init_engine
self.init_datafeed()
File "/Users/zjn_11/Library/Python/3.9/lib/python/site-packages/vnpy_ctastrategy/engine.py", line 123, in init_datafeed
result: bool = self.datafeed.init(self.write_log)
TypeError: init() takes 1 positional argument but 2 were given

© 2015-2022 微信 18391752892
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】