Exemple #1
0
 def LoginCall(self, credential=None):
     # pylint: disable=no-member
     request = KiwoomOpenApiPlusService_pb2.LoginRequest()
     if credential is not None:
         request.credential.user_id = credential.get(
             "user_id"
         )  # pylint: disable=no-member
         request.credential.user_password = credential.get(
             "user_password"
         )  # pylint: disable=no-member
         request.credential.cert_password = credential.get(
             "cert_password"
         )  # pylint: disable=no-member
         request.credential.is_simulation = credential.get(
             "is_simulation"
         )  # pylint: disable=no-member
         account_passwords = credential.get(
             "account_passwords"
         )  # pylint: disable=no-member
         for account_no, account_password in account_passwords.items():
             request.credential.account_passwords[
                 account_no
             ] = account_password  # pylint: disable=no-member
     for response in self._stub.LoginCall(request):
         errcode = response.arguments[0].long_value
     return errcode
 def LoginCall(self):
     request = KiwoomOpenApiPlusService_pb2.LoginRequest()
     for response in self._stub.LoginCall(request):
         errcode = response.arguments[0].long_value
     return errcode