class TradeDemo {

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


    Exchange livecoinExchange = ExchangeFactory.INSTANCE.createExchange(LivecoinExchange.class);

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

    System.out.println("fetching data...");

    Trades trades = marketDataService.getTrades(CurrencyPair.BTC_USD);

    System.out.println("received data.");

    for (Trade trade : trades.getTrades()) {
      System.out.println(
          trade.getType()
              + " "
              + trade.getCurrencyPair()
              + " Price: "
              + trade.getPrice()
              + " Amount: "
              + trade.getOriginalAmount());
    }
  
<no_super_class>