code: public void getAllInstruments(KiteConnect kiteConnect) throws KiteException, IOException {
          // Get all instruments list. This call is very expensive as it involves downloading of large data dump.
          // Hence, it is recommended that this call be made once and the results stored locally once every morning before market opening.
          List<Instrument> instruments = kiteConnect.getInstruments();
          System.out.println(instruments.size());
      }
docs: Get all instruments that can be traded using kite connect.