code: def get_order_book(self, code):
          
          if code is None or is_str(code) is False:
              error_str = ERROR_STR_PREFIX + "the type of code param is wrong"
              return RET_ERROR, error_str
  
          query_processor = self._get_sync_query_processor(
              OrderBookQuery.pack_req,
              OrderBookQuery.unpack_rsp,
          )
  
          kargs = {
              "code": code,
              "conn_id": self.get_sync_conn_id()
          }
          ret_code, msg, orderbook = query_processor(**kargs)
          if ret_code == RET_ERROR:
              return ret_code, msg
  
          return RET_OK, orderbook
docs: 获取实时摆盘数据
  
          :param code: 股票代码
          :return: (ret, data)
  
                  ret == RET_OK 返回字典，数据格式如下
  
                  ret != RET_OK 返回错误字符串
  
                  {‘code’: 股票代码
                  ‘Ask’:[ (ask_price1, ask_volume1，order_num), (ask_price2, ask_volume2, order_num),…]
                  ‘Bid’: [ (bid_price1, bid_volume1, order_num), (bid_price2, bid_volume2, order_num),…]
                  }
  
                  'Ask'：卖盘， 'Bid'买盘。每个元组的含义是(委托价格，委托数量，委托订单数)