Sunday, August 26, 2012

Bombay Stock Exchange Data Extractor

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>&section=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.

7 comments:

  1. Hi this one is great and is really a good post. I think it will help me a lot in the related stuff and is very much useful for me. Very well written I appreciate & must say good job..bombay stock exchange

    ReplyDelete
  2. can you make this in asp.net c# for me

    ReplyDelete
  3. Best Web Data Extractor Software

    Data extraction methodology used with this website software kit is incredibly superb and authentic. The well customized data obtaining method will let the user achieve their aim in a stipulated time manner. It also ensures that drawn data is put in an order that best suit the interest of a user. Web data scraper is in huge demand these days seeing its authentic and flawless style of working with multiple websites. This is being procured by the users.

    For more detail please visit our website: http://www.lantechsoft.com/web-data-extractor.html

    ReplyDelete
  4. Certainly, It's a elegant and signifisant website. I like your website surely. Thank's very much for this website. If want more informstion about stock watch to visit stock watch Following , make sure you have a superior penetration of volatility involving distribute profit catalog. Quite simply , your experienced traders shop for a standard for or possibly outside of the amounts of aid as well as level of resistance grades for or possibly in the proximity of the additional position together with offer your pound share you're looking for. Very little intelligent pound share worker might be permitted to spend as well as profit from the gains , the worth point , glance.

    ReplyDelete
  5. how to get current price open price close price

    ReplyDelete
  6. I reading your blog last 8 months continuously ,I like your written content . Epic Research also best advisory firm .

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete