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());
    }
public void getHoldings ( KiteConnect kiteConnect ) throws KiteException , IOException { List < Holding > holdings = kiteConnect . getHoldings ( ) ; System . out . println ( holdings . size ( ) ) ; }
Get holdings.