vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0
from vnpy.app.script_trader import init_cli_trading
from vnpy.gateway.xtp import XtpGateway
my_eg = init_cli_trading([XtpGateway])

ImportError Traceback (most recent call last)

<ipython-input-6-1cc05dc4379a> in <module>
----> 1 from vnpy.gateway.xtp import XtpGateway

~/miniconda3/envs/vnpy2.1.6/lib/python3.7/site-packages/vnpy/gateway/xtp/init.py in <module>
----> 1 from .xtp_gateway import XtpGateway

~/miniconda3/envs/vnpy2.1.6/lib/python3.7/site-packages/vnpy/gateway/xtp/xtp_gateway.py in <module>
3 from datetime import datetime
4
----> 5 from vnpy.api.xtp import MdApi, TdApi
6 from vnpy.event import EventEngine
7 from vnpy.trader.event import EVENT_TIMER

~/miniconda3/envs/vnpy2.1.6/lib/python3.7/site-packages/vnpy/api/xtp/init.py in <module>
----> 1 from .vnxtpmd import MdApi
2 from .vnxtptd import TdApi
3 from .xtp_constant import *

ImportError: libxtptraderapi.so: cannot open shared object file: No such file or directory

求教什么问题?CTP的不报错,是因为UB18上不支持XTP接口吗?

Member
avatar
加入于:
帖子: 1415
声望: 86

应该是吧,xtp是不支持Ubuntu的。可参考https://www.vnpy.com/forum/topic/3120-30duo-tao-apijie-kou-huan-pa-man-zu-bu-liao-ni-de-liang-hua-jiao-yi-xu-qiu

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