code: public void getPositions(KiteConnect kiteConnect) throws KiteException, IOException {
          // Get positions returns position model which contains list of positions.
          Map<String, List<Position>> position = kiteConnect.getPositions();
          System.out.println(position.get("net").size());
          System.out.println(position.get("day").size());
      }
docs: Get all positions.