How to retrieve BSE/NSE listed stock's price from finance.yahoo.com

∥☆過路亽.° 提交于 2019-12-06 05:11:10

问题


I'm developing an application for stocks displaying through finance.yahoo.com in Java using Spring framework.

But it only provides share values from NYSE, Nasdaq-NM, etc. How can I retrieve the values of share by specify NSE or BSE?


回答1:


You can retrieve the components of BSE and NSE with these two links: http://in.finance.yahoo.com/gainers?e=bo and http://in.finance.yahoo.com/losers?e=bo (Gainers and Losers).
Once you have your full list of stocks, just use your link to retrieve data, for example:

http://download.finance.yahoo.com/d/quotes.csv?s=BOBSL.BO,JAIPAN.BO,SANGHIIN.BO&f=snl1d1t1ohgdrx

You might want to check each ticker individually, and ensuring it does retrieve correct information though, eg SOUTHINDBSL.BO doesn't seem to work properly.



来源:https://stackoverflow.com/questions/12193437/how-to-retrieve-bse-nse-listed-stocks-price-from-finance-yahoo-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!