class TickerDemo {

  public static void main(String[] args) throws IOException {<FILL_FUNCTION_BODY>}
}


    // Use the factory to get Cex.IO exchange API using default settings
    Exchange exchange = ExchangeFactory.INSTANCE.createExchange(CexIOExchange.class);

    // Interested in the public market data feed (no authentication)
    MarketDataService marketDataService = exchange.getMarketDataService();

    // Get the latest ticker data showing BTC to USD
    Ticker ticker = marketDataService.getTicker(new CurrencyPair(Currency.BTC, Currency.USD));

    System.out.println("Pair: " + ticker.getCurrencyPair());
    System.out.println("Last: " + ticker.getLast());
    System.out.println("Volume: " + ticker.getVolume());
    System.out.println("High: " + ticker.getHigh());
    System.out.println("Low: " + ticker.getLow());
    System.out.println("Bid: " + ticker.getBid());
    System.out.println("Ask: " + ticker.getAsk());
    System.out.println("Timestamp: " + ticker.getTimestamp());
  
<no_super_class>