class ItBitMarketDataService extends ItBitMarketDataServiceRaw implements MarketDataService {

  /**
   * Constructor
   *
   * @param exchange
   */
  public ItBitMarketDataService(Exchange exchange) {

    super(exchange);
  }

  @Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {

    ItBitTicker itBitTicker = getItBitTicker(currencyPair);

    return ItBitAdapters.adaptTicker(currencyPair, itBitTicker);
  }

  @Override
  public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {<FILL_FUNCTION_BODY>}

  @Override
  public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException {

    return ItBitAdapters.adaptTrades(getItBitTrades(currencyPair, args), currencyPair);
  }
}


    ItBitDepth depth = getItBitDepth(currencyPair, args);

    List<LimitOrder> asks = ItBitAdapters.adaptOrders(depth.getAsks(), currencyPair, OrderType.ASK);
    List<LimitOrder> bids = ItBitAdapters.adaptOrders(depth.getBids(), currencyPair, OrderType.BID);

    return new OrderBook(null, asks, bids);
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public transient org.knowm.xchange.itbit.dto.marketdata.ItBitDepth getItBitDepth(org.knowm.xchange.currency.CurrencyPair, java.lang.Object[]) throws java.io.IOException,public org.knowm.xchange.itbit.dto.marketdata.ItBitTicker getItBitTicker(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public transient org.knowm.xchange.itbit.dto.marketdata.ItBitTrades getItBitTrades(org.knowm.xchange.currency.CurrencyPair, java.lang.Object[]) throws java.io.IOException<variables>