code: public void getTradesWithOrderId(KiteConnect kiteConnect) throws KiteException, IOException {
          // Returns trades for the given order.
          List<Trade> trades = kiteConnect.getOrderTrades("180111000561605");
          System.out.println(trades.size());
      }
docs: Get trades for an order.