code: private Tick getIndeciesData(byte[] bin, int x){
          int dec = 100;
          Tick tick = new Tick();
          tick.setMode(modeFull);
          tick.setTradable(false);
          tick.setInstrumentToken(x);
          tick.setLastTradedPrice(convertToDouble(getBytes(bin, 4, 8)) / dec);
          tick.setHighPrice(convertToDouble(getBytes(bin, 8, 12)) / dec);
          tick.setLowPrice(convertToDouble(getBytes(bin, 12, 16)) / dec);
          tick.setOpenPrice(convertToDouble(getBytes(bin, 16, 20)) / dec);
          tick.setClosePrice(convertToDouble(getBytes(bin, 20, 24)) / dec);
          tick.setNetPriceChangeFromClosingPrice(convertToDouble(getBytes(bin, 24, 28)) / dec);
          if(bin.length > 28) {
              long tickTimeStamp = convertToLong(getBytes(bin, 28, 32)) * 1000;
              if(isValidDate(tickTimeStamp)) {
                  tick.setTickTimestamp(new Date(tickTimeStamp));
              } else {
                  tick.setTickTimestamp(null);
              }
          }
          return tick;
      }
docs: Parses NSE indices data.
  @return Tick is the parsed index data.