class ItBitOrderBookDemo {
  public static void main(String[] args) throws IOException {
    Exchange xchange = ExchangeFactory.INSTANCE.createExchange(ItBitExchange.class);

    MarketDataService marketDataService = xchange.getMarketDataService();

    generic(marketDataService);
    raw((ItBitMarketDataServiceRaw) marketDataService);
  }

  private static void generic(MarketDataService marketDataService) throws IOException {<FILL_FUNCTION_BODY>}

  private static void raw(ItBitMarketDataServiceRaw marketDataService) throws IOException {

    ItBitDepth orderBook = marketDataService.getItBitDepth(CurrencyPair.BTC_USD);
    System.out.println(orderBook.toString());
  }
}


    OrderBook orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_USD);
    System.out.println(orderBook.toString());

    OrderBook orderBookAsXBT =
        marketDataService.getOrderBook(new CurrencyPair(Currency.XBT, Currency.USD));
    System.out.println(orderBookAsXBT.toString());
  
<no_super_class>