class BitmexMarketdataDemo {

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

    Exchange exchange = BitmexDemoUtils.createExchange();
    MarketDataService service = exchange.getMarketDataService();

    ticker(service);
  }

  private static void ticker(MarketDataService service) throws IOException {<FILL_FUNCTION_BODY>}
}


    // Get the ticker/markets information
    BitmexMarketDataServiceRaw serviceRaw = (BitmexMarketDataServiceRaw) service;
    List<BitmexTicker> tickers = serviceRaw.getActiveTickers();
    System.out.println(tickers);

    tickers = serviceRaw.getTicker("Xbt");
    System.out.println(tickers);

    List<BitmexTicker> ticker = serviceRaw.getTicker("XBt");
    System.out.println(ticker);
  
<no_super_class>