public class testModel {
 
 public static void main(String[] args) throws IOException {
  
  ExchangeSpecification exSpec = new BitmexExchange().getDefaultExchangeSpecification();
  Exchange bitmexExchange = ExchangeFactory.INSTANCE.createExchange(exSpec);
  
  System.out.println(
    bitmexExchange.getMarketDataService().getTicker(CurrencyPair.XBT_USD, null)
  );
 }
 
}