class OkexTradesDemo {

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

    ExchangeSpecification exSpec = new ExchangeSpecification(OkexExchange.class);

    Exchange okexExchange = ExchangeFactory.INSTANCE.createExchange(exSpec);

    generic(okexExchange);
  }

  private static void generic(Exchange okexExchange) throws IOException {<FILL_FUNCTION_BODY>}
}


    // Interested in the public market data feed (no authentication)

    MarketDataService marketDataService = okexExchange.getMarketDataService();
    FuturesContract contract = new FuturesContract(CurrencyPair.BTC_USDT, "210924");

    // Get the latest trades data for BTC_UST Sept 24th Contact
    Trades trades = marketDataService.getTrades(contract);

    System.out.println(trades);
    System.out.println("Trades(0): " + trades.getTrades().get(0).toString());
    System.out.println("Trades size: " + trades.getTrades().size());
  
<no_super_class>