code: def _qry(self):
          
          # restart 模式, 待rtnorder 处理完毕后再进行查询,否则会造成position混乱
          ord_cnt = 0
          trd_cnt = 0
          while True:
              time.sleep(0.5)
              if len(self.orders) == ord_cnt and len(self.trades) == trd_cnt:
                  break
              ord_cnt = len(self.orders)
              trd_cnt = len(self.trades)
          self.t.ReqQryInstrument()
          time.sleep(1.1)
          self.t.ReqQryInvestorPosition(self.broker, self.investor)
          time.sleep(1.1)
          self.t.ReqQryTradingAccount(self.broker, self.investor)
          time.sleep(1.1)
  
          self.logined = True
          info = InfoField()
          info.ErrorID = 0
          info.ErrorMsg = '正确'
          threading.Thread(target=self.OnUserLogin, args=(self, info)).start()
          # 调用Release后程序异常退出,但不报错误:接口断开了仍然调用了查询指令
          while self.logined:
              """查询持仓与权益"""
              self.t.ReqQryInvestorPosition(self.broker, self.investor)
              time.sleep(1.1)
              if not self.logined:
                  return
              self.t.ReqQryTradingAccount(self.broker, self.investor)
              time.sleep(1.1)
docs: 查询帐号相关信息