class CoinbaseMarketDataDemo {

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


    Exchange coinbaseExchange = ExchangeFactory.INSTANCE.createExchange(CoinbaseExchange.class);
    CoinbaseMarketDataService marketDataService =
        (CoinbaseMarketDataService) coinbaseExchange.getMarketDataService();

    List<CoinbaseCurrency> currencies = marketDataService.getCoinbaseCurrencies();
    System.out.println("Currencies: " + currencies);

    Map<String, BigDecimal> exchangeRates = marketDataService.getCoinbaseExchangeRates();
    System.out.println("Exchange Rates: " + exchangeRates);

    CoinbasePrice buyPrice = marketDataService.getCoinbaseBuyPrice(Currency.BTC, Currency.USD);
    System.out.println("Buy Price for one BTC: " + buyPrice);

    CoinbasePrice sellPrice = marketDataService.getCoinbaseSellPrice(Currency.BTC, Currency.USD);
    System.out.println("Sell Price: " + sellPrice);

    CoinbasePrice spotRate = marketDataService.getCoinbaseSpotRate(Currency.BTC, Currency.USD);
    System.out.println("Spot Rate: " + spotRate);

    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    CoinbasePrice historicalSpotRate =
        marketDataService.getCoinbaseHistoricalSpotRate(
            Currency.BTC, Currency.USD, format.parse("2016-12-01"));
    System.out.println("Historical Spot Rate 2016-12-01: " + historicalSpotRate);
  
<no_super_class>