Stock Quotes from Yahoo finance for Indian NSE, BSE

岁酱吖の 提交于 2021-02-18 19:18:05

问题


Following is my query using YQL, data is fetched using Yahoo finance, I am using the symbols for the stocks traded on the Indian NSE, BSE

http://query.yahooapis.com/v1/public/yql?q=select  * from yahoo.finance.quotes where 
symbol in ("AIAENG.NS","ATULAUTO.NS")&env=http://datatables.org/alltables.env&format=json

Strange thing is this query always return null data (Invalid data) for all the fields, even when the symbol that I am using is correct and can be used on the Yahoo finance for querying the details. In fact same is for another Indian exchange BSE, with respective symbols AIAENG.BO, ATULAUTO.BO

However if I replace the with US Nasdaq symbols like "YHOO","AAPL","GOOG","MSFT", it works without an issue.


回答1:


If yahoo finance is not your compulsion, then you can use this project.

http://nsetools.readthedocs.org/en/latest/

This is well documented and uses NSE as a data source which is most reliable.




回答2:


If someone's still looking out, and not satisfied with nsetools (because lack of historical data), here is the latest link I found to be working:

https://query1.finance.yahoo.com/v8/finance/chart/CDSL.NS

Replace CDSL with appropriate symbol.




回答3:


Late in the game but adding my response just in case if anybody looking for an easiest way to get the near real time quote(up to 10 tickers) by using Google Finance REST call.

http://finance.google.com/finance/info?q=NSE:AIAENG,NSE:ATULAUTO

And the acronym description can be found here http://qsb-mac-plugins.googlecode.com/svn-history/r4/trunk/stock-quoter/trunk/StockQuoter.py



来源:https://stackoverflow.com/questions/27678734/stock-quotes-from-yahoo-finance-for-indian-nse-bse

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