Please go to this GitHub library. It will surely help.
Currently it gives live stock from the official NSE site.
This services will give you a json response, you can parse this JSON to get the appropriate value, by just replacing the symbol with a valid NSE code.