code: public void getOrder(KiteConnect kiteConnect) throws KiteException, IOException {
          List<Order> orders = kiteConnect.getOrderHistory("180111000561605");
          for(int i = 0; i< orders.size(); i++){
              System.out.println(orders.get(i).orderId+" "+orders.get(i).status);
          }
          System.out.println("list size is "+orders.size());
      }
docs: Get order details