Awhile ago, i needed an automated application to provide me with latest quotes of my scrips from Bombay Stock Exchange. I looked it over net,but did not find any. Then i decided to make my own application, using API that BSE uses to update it's own website. I thought they would be distributing it as a good software practice. But they are not doing so, so i had to reverse engineer the website code and found that they were indeed using an API.
It is not much pain to use this API, very simple GET method can be used to access this API.
The following link provides the # separated data that we need:
http://www.bseindia.com/bseplus/stockreach/AdvStockReach.aspx?scripcode=<scrip-code>§ion=tab1&IsPF=sPF&random=1
where <scrip-code> is the scrip code of the company you want to access - like 532977( BAJAJ AUTO LTD).
I wrote a PHP script for extracting valuable data, you can find the code here:
https://sourceforge.net/projects/bsedataextract/files/getquotes.php/download
The script will print company name and it's face value
Other details can be extracated from the same URL in the same fashion as these values are extracted.
Go thru the script it is self explanatory.
It is not much pain to use this API, very simple GET method can be used to access this API.
The following link provides the # separated data that we need:
http://www.bseindia.com/bseplus/stockreach/AdvStockReach.aspx?scripcode=<scrip-code>§ion=tab1&IsPF=sPF&random=1
where <scrip-code> is the scrip code of the company you want to access - like 532977( BAJAJ AUTO LTD).
I wrote a PHP script for extracting valuable data, you can find the code here:
https://sourceforge.net/projects/bsedataextract/files/getquotes.php/download
The script will print company name and it's face value
Other details can be extracated from the same URL in the same fashion as these values are extracted.
Go thru the script it is self explanatory.