code: public void getOHLC(KiteConnect kiteConnect) throws KiteException, IOException {
          String[] instruments = {"256265","BSE:INFY", "NSE:INFY", "NSE:NIFTY 50"};
          System.out.println(kiteConnect.getOHLC(instruments).get("256265").lastPrice);
          System.out.println(kiteConnect.getOHLC(instruments).get("NSE:NIFTY 50").ohlc.open);
      }
docs: /* Get ohlc and lastprice for multiple instruments at once.
  Users can either pass exchange with tradingsymbol or instrument token only. For example {NSE:NIFTY 50, BSE:SENSEX} or {256265, 265}