Get stock quotes of NSE and BSE using web-service and parse it using json

Rikin Thakkar picture Rikin Thakkar · Mar 25, 2014 · Viewed 17.5k times · Source

I want to show all stock price of NSE and BSE on simple html page.

I got information from google that i can call any web service that is already exist and they will give all information in json form. And then I have to parse that jason code.

Now I want someone to provide me link by which i can call the webservice. And let me know how can i call that web service using jQuery. And how can i parse output json data. If any one can give me sample code then it will be best..

Thank you so much for helping me.. :)

Answer

Amar Gadekar picture Amar Gadekar · Dec 26, 2015

If you want to fetch the data from NSE web service, then below is the link:

http://www.nseindia.com/live_market/dynaContent/live_watch/get_quote/ajaxGetQuoteJSON.jsp?symbol=dhfl

But I'm not sure whether you can use this link or not for non commercial as well as commercial purpose.

As the site has been updated and old site is no more working, updating answers with new updated links:

Equity link - https://www.nseindia.com/api/quote-equity?symbol=RELIANCE https://www.nseindia.com/api/quote-equity?symbol=RELIANCE&section=trade_info

Derivatives link: https://www.nseindia.com/api/quote-derivative?symbol=RELIANCE

I'm not sure whether you can use this link or not for non commercial as well as commercial purpose