class CCEXMarketDataService extends CCEXMarketDataServiceRaw implements MarketDataService {

  public CCEXMarketDataService(Exchange exchange) {
    super(exchange);
  }

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

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

    return CCEXAdapters.adaptTicker(getTicker(currencyPair), currencyPair);
  }

  @Override
  public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException {
    return CCEXAdapters.adaptTrades(getCCEXTrades(currencyPair), currencyPair);
  }
}


    int depth = 50;
    if (args != null && args.length > 0) {
      if (args[0] instanceof Number) {
        Number arg = (Number) args[0];
        depth = arg.intValue();
      }
    }

    return CCEXAdapters.adaptOrderBook(getCCEXOrderBook(currencyPair, depth), currencyPair);
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public org.knowm.xchange.ccex.dto.marketdata.CCEXGetorderbook getCCEXOrderBook(org.knowm.xchange.currency.CurrencyPair, int) throws java.io.IOException,public org.knowm.xchange.ccex.dto.marketdata.CCEXTrades getCCEXTrades(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public List<org.knowm.xchange.ccex.dto.marketdata.CCEXMarket> getConbaseExProducts() throws java.io.IOException,public org.knowm.xchange.ccex.dto.ticker.CCEXPriceResponse getTicker(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException<variables>private final non-sealed org.knowm.xchange.ccex.CCEX ccex