[Add]Close #561
This commit is contained in:
parent
cd8874d68c
commit
cc5c85f1ba
@ -2,6 +2,6 @@
|
||||
"brokerID": "9999",
|
||||
"mdAddress": "tcp://180.168.146.187:10011",
|
||||
"tdAddress": "tcp://180.168.146.187:10001",
|
||||
"userID": "000300",
|
||||
"password": "19890624"
|
||||
"userID": "simnow申请",
|
||||
"password": "simnow申请"
|
||||
}
|
@ -3,5 +3,7 @@
|
||||
"mdAddress": "tcp://180.168.146.187:10011",
|
||||
"tdAddress": "tcp://180.168.146.187:10001",
|
||||
"userID": "simnow申请",
|
||||
"password": "simnow申请"
|
||||
"password": "simnow申请",
|
||||
"userProductInfo": "客户端名称",
|
||||
"authCode": "客户端认证码"
|
||||
}
|
@ -142,7 +142,7 @@ class CtpGateway(VtGateway):
|
||||
|
||||
# 创建行情和交易接口对象
|
||||
self.mdApi.connect(userID, password, brokerID, mdAddress)
|
||||
self.tdApi.connect(userID, password, brokerID, tdAddress,authCode, userProductInfo)
|
||||
self.tdApi.connect(userID, password, brokerID, tdAddress, authCode, userProductInfo)
|
||||
|
||||
# 初始化并启动查询
|
||||
self.initQuery()
|
||||
|
Loading…
Reference in New Issue
Block a user