code: public void getHoldings(KiteConnect kiteConnect) throws KiteException, IOException {
          // Get holdings returns holdings model which contains list of holdings.
          List<Holding> holdings = kiteConnect.getHoldings();
          System.out.println(holdings.size());
      }
docs: Get holdings.