I want to display NSE/BSE quote in my PHP website. please let me know what I have to do, if I get the webservices for this then how to use it in PHP. Please help
NSE/BSE refers to national/bombay stock exchange of india. I think you could look at http://www.programmableweb.com/ if any such api is available.
You can look at http://mayanks.blogspot.com/2009/09/api-for-bse-shares-data-in-india.html for ruby gem called BseQuote.
You have to parse their data from their web sites:
First select a page that contains your required data:
for example: http://www.bseindia.com/mktlive/mktwatch.asp
Now parse data using simple html dom parser
Now store extracted data into your database.
Now show your data in your website using your database
You can code a script that can update your database on daily bases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With