class BitcoindeTradesDemo {

  public static void main(String[] args) throws IOException {

    Exchange bitcoindeExchange = ExchangeUtils.createExchangeFromJsonConfiguration();

    /* create a data service from the exchange */
    MarketDataService marketDataService = bitcoindeExchange.getMarketDataService();

    generic(marketDataService);
    raw((BitcoindeMarketDataServiceRaw) marketDataService);
  }

  public static void generic(MarketDataService marketDataService) throws IOException {

    /* get Trades data */
    Trades trades = marketDataService.getTrades(CurrencyPair.BTC_EUR);
    List<Trade> allTrades = trades.getTrades();
    System.out.println("Number trades received: " + allTrades.size());
    for (Trade t : allTrades) {
      System.out.println(t);
    }
  }

  public static void raw(BitcoindeMarketDataServiceRaw marketDataService) throws IOException {<FILL_FUNCTION_BODY>}
}


    /* get BitcoindeTrades data */
    BitcoindeTradesWrapper bitcoindeTrades =
        marketDataService.getBitcoindeTrades(CurrencyPair.ETH_EUR, 4196418);

    /* print each trade object */
    for (BitcoindeTrade bitcoindeTrade : bitcoindeTrades.getTrades())
      System.out.println(bitcoindeTrade);
  
<no_super_class>