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

C:\Users\wangye2018\Anaconda3\python3.exe Z:/Downloads/vnpy-2.0.4/examples/vn_trader/run.py
Traceback (most recent call last):
File "Z:/Downloads/vnpy-2.0.4/examples/vn_trader/run.py", line 9, in <module>
from vnpy.gateway.ib import IbGateway
File "Z:\Downloads\vnpy-2.0.4\vnpy\gateway\ib__init__.py", line 1, in <module>
from .ib_gateway import IbGateway
File "Z:\Downloads\vnpy-2.0.4\vnpy\gateway\ib\ib_gateway.py", line 9, in <module>
from ibapi import comm
ModuleNotFoundError: No module named 'ibapi'

Process finished with exit code 1

Member
avatar
加入于:
帖子: 77
声望: 0

Z:\workspace\github\vnpy>python3 -m pip install ib-api
Requirement already satisfied: ib-api in c:\users\wangye2018\anaconda3\lib\site-packages (0.9.70)

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

Z:\workspace\github\vnpy>python3 -m pip install ib-api

这句安装是错的,IB官方API需要从IB官网下载,然后手动执行安装(比较麻烦),PIP源上是没有的

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

不好意思,请教一下交易员,有vnpy连接IB的详细教程吗? 包括TWS API安装的

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

公众号vnpy-community有详细教程,TWS API推荐直接用VNStudio 2.0.6:https://download.vnpy.com/vnstudio-2.0.6.exe,内置了

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