code: def get_acc_list(self):
          
          query_processor = self._get_sync_query_processor(
              GetAccountList.pack_req, GetAccountList.unpack_rsp)
  
          kargs = {
              'user_id': self.get_login_user_id(),
              'conn_id': self.get_sync_conn_id()
          }
  
          ret_code, msg, acc_list = query_processor(**kargs)
          if ret_code != RET_OK:
              return RET_ERROR, msg
  
          # 记录当前市场的帐号列表
          self.__last_acc_list = []
  
          for record in acc_list:
              trdMkt_list = record["trdMarket_list"]
              if self.__trd_mkt in trdMkt_list:
                  self.__last_acc_list.append({
                      "trd_env": record["trd_env"],
                      "acc_id": record["acc_id"]})
  
          col_list = ["acc_id", "trd_env"]
  
          acc_table = pd.DataFrame(copy(self.__last_acc_list), columns=col_list)
  
          return RET_OK, acc_table
docs: :return: (ret, data)