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

from vnpy.app.script_trader import init_cli_trading
from vnpy.gateway.ctp import CtpGateway
engine = init_cli_trading([CtpGateway])
setting = {
"用户名": "xxxx",
"密码": "xxxx",
"经纪商代码": "9999",
"交易服务器":"tcp://180.168.146.187:10101",
"行情服务器":"tcp://180.168.146.187:10111",
"产品名称":"simnow_xxx_test",
"授权编码":"0000000000000000",
"产品信息": ""
}
engine.connect_gateway(setting,"CTP")
上述运行后没有任何信息输出?

Administrator
avatar
加入于:
帖子: 1929
声望: 87
tcp://180.168.146.187:10101

所有代码里、程序里用到的冒号都要用英文冒号

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