More on BSE / NSE feeds project

Posted May 19, 2009 at 6:49 pm by Akshay

This is in continuation to my concept note on BSE and NSE syndication feeds. Here are some more sketchy details about the planned service.

Data source: Currently I am considering to scrap the stock exchange website pages using cURL and then parsing the DOM structure of the raw source. Once the service grows big enough, a subscription to an official data feed can be considered.

Output formats: I realized that RSS was a bad idea after all, however I discovered a very evolved XML specification for market data representation called Market Data Definition Language (MDDL). Apart from MDDL the other output formats could be a simpler XML (home grown format); good old csv (light, easy and time tested) and JSON (for direct use in client side apps). As JSONP is natively cross domain, it can be easily integrated without any server side technology. This means that users of this service can start their own ‘Get Quote’ apps on their website irrespective of the server or the host they use… just plain javascript code.

Lets get down to an example here. This is the current get quote output from NSE (exchange) for ACC (stock). An example output in MDDL would look like this sample mddl-xml. This as such is the plan and I am eagerly awaiting some feedback on this one before I start off with the actual code.

One Comment

  1. i want to add NSE NIFTY STOCK TICKER to my blog so please send it in html format to my mail id. to enable me to add to my blog
    regards,

    MURUGAVEL

Leave a Comment