Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me to get NSE stock indices

 
archana vishwanath
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I need to add (NSE and BSE )Indian stock quotes ticker in my JSP web site
I do not know where to get these values.Please tell me some links
where I can get these indices and how to fetch the values and display.

Thanks in advance.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may probably incorporate a webservice that provides these values and output the results on to your JSP.

Just a idea...
 
archana vishwanath
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kishore,

But how to go about it.
Can any one tell me where to find the web service for this.Because I
searched the whole web and Im not able to find any web service for
NSE stocks.
 
Ganesh Venkataraman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I dont think we have any free services to access NSE quotes. I had the same requirements sometime ago and I implemented using the HTML parsing. There are numerous sites which displays the current price of the stock when you send the stock code as the query parameter.

Parse the return HTML (using regex) and get the price part of any exchange BSE/NSE. The only issue here is, if the site changes its display, then you may have to modify your parser also.

Ganesh
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Archana,
I wouldn't expect there to be a free web service for this. A paid one, yes - but not free. For example, this page has an API. It costs money for them to provide the quotes real-time. Similarly, for this reason it is often illegal to screen-scrape to get the information. For example, Google has policies against screenscrapers, but provides a limited free API to get the same inforamtion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic