Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stock Quotes from Yahoo finance for Indian NSE, BSE

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.

like image 261
Mrinal Kamboj Avatar asked Oct 20 '25 04:10

Mrinal Kamboj


2 Answers

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.

like image 64
Sanket Patel Avatar answered Oct 22 '25 03:10

Sanket Patel


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.

like image 20
Vivek Jha Avatar answered Oct 22 '25 03:10

Vivek Jha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!