VeighNa量化社区
你的开源社区量化交易平台
Member
加入于:
帖子: 14
声望: 4

报错如下:

File "/Users/feivirus/Documents/project/pycharm/vnpy/examples/vn_trader/run.py", line 12, in <module>
from vnpy.gateway.ctptest import CtptestGateway
File "/Users/feivirus/Documents/project/pycharm/vnpy/vnpy/gateway/ctptest/init.py", line 1, in <module>
from .ctptest_gateway import CtptestGateway
File "/Users/feivirus/Documents/project/pycharm/vnpy/vnpy/gateway/ctptest/ctptest_gateway.py", line 11, in <module>
from .vnctpmd import MdApi
ModuleNotFoundError: No module named 'vnpy.gateway.ctptest.vnctpmd'

Administrator
avatar
加入于:
帖子: 4500
声望: 320

CTP API不支持Mac系统,去掉加载ctp_gateway

Member
加入于:
帖子: 14
声望: 4

用Python的交易员 wrote:

CTP API不支持Mac系统,去掉加载ctp_gateway

感谢,发现了。ctp只给了linux的so库,elf格式的。mac上mach-o格式,跑步起来.

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

沪公网安备 31011502017034号

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