Example #1
0
 def OnFrontConnected(self):
     logger.info('OnFrontConnected')
     req = ApiStructure.ReqAuthenticateField(BrokerID=self.broker_id,
                                             UserID=self.investor_id,
                                             AuthCode=self.auth_code,
                                             AppID=self.app_id)
     self.ReqAuthenticate(req, self.inc_request_id())
Example #2
0
    def OnFrontConnected(self):
        print("OnFrontConnected")
        authenticate = ApiStructure.ReqAuthenticateField(
            BrokerID=self.broker_id,
            UserID=self.investor_id,
            AppID=self.app_id,
            AuthCode=self.auth_code)

        self.ReqAuthenticate(authenticate, self.request_id)