问题
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