哪位帮忙看看下面代码对不对,运行了啥也不显示,也没报错,
如果代码没错的话后面怎么接收数据?
from vnpy.app.script_trader import init_cli_trading
from vnpy.gateway.ctp import CtpGateway
setting = {
"用户名": "**",
"密码": "**",
"经纪商代码": "9999",
"交易服务器": "180.168.146.187:10000",
"行情服务器": "180.168.146.187:10010",
"产品名称": "",
"授权编码": "",
"产品信息": ""
}
engine = init_cli_trading([CtpGateway])
engine.connect_gateway(setting,"CTP")
engine.subscribe(['AU1912'])