code: private Tick getLtpQuote(byte[] bin, int x, int dec1){
          Tick tick1 = new Tick();
          tick1.setMode(modeLTP);
          tick1.setTradable(true);
          tick1.setInstrumentToken(x);
          tick1.setLastTradedPrice(convertToDouble(getBytes(bin, 4, 8)) / dec1);
          return tick1;
      }
docs: Parses LTP data.