Пример #1
0
 def OnFrontConnected(self) -> "void":
     loginfield = mdapi.CThostFtdcReqUserLoginField()
     loginfield.BrokerID = "9999"  # 华西期货:16333
     loginfield.UserID = "162548"
     loginfield.Password = "******"
     loginfield.UserProductInfo = "python dll"
     self.tapi.ReqUserLogin(loginfield, 0)
Пример #2
0
 def OnFrontConnected(self) -> "void":
     print("OnFrontConnected")
     loginfield = mdapi.CThostFtdcReqUserLoginField()
     loginfield.BrokerID = "8000"
     loginfield.UserID = "000005"
     loginfield.Password = "******"
     loginfield.UserProductInfo = "python dll"
     self.tapi.ReqUserLogin(loginfield, 0)
Пример #3
0
 def OnFrontConnected(self) -> "void":
     print ("OnFrontConnected")
     #设置一个登录结构体
     loginfield = mdapi.CThostFtdcReqUserLoginField()
     #对登录结构体进行传参
     loginfield.BrokerID="8000"
     loginfield.UserID="000005"
     loginfield.Password="******"
     loginfield.UserProductInfo="python dll"
     #讲登录结构体传参,并且进行请求,调用请求函数
     self.tapi.ReqUserLogin(loginfield,0)