code: def get_orderbook(self, market, depth_type=BOTH_ORDERBOOK):
          
          return self._api_query(path_dict={
              API_V1_1: '/public/getorderbook',
              API_V2_0: '/pub/Market/GetMarketOrderBook'
          }, options={'market': market, 'marketname': market, 'type': depth_type}, protection=PROTECTION_PUB)
docs: Used to get retrieve the orderbook for a given market.
  
          The depth_type parameter is IGNORED under v2.0 and both orderbooks are always returned
  
          Endpoint:
          1.1 /public/getorderbook
          2.0 /pub/Market/GetMarketOrderBook
  
          :param market: String literal for the market (ex: BTC-LTC)
          :type market: str
          :param depth_type: buy, sell or both to identify the type of
              orderbook to return.
              Use constants BUY_ORDERBOOK, SELL_ORDERBOOK, BOTH_ORDERBOOK
          :type depth_type: str
          :return: Orderbook of market in JSON
          :rtype : dict