Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Irish Stock Exchange data feeds?

Options
  • 24-12-2008 12:50pm
    #1
    Registered Users Posts: 7,468 ✭✭✭


    Anyone know where to get them? I'm looking for an API rather than an on screen ticker.


Comments

  • Registered Users Posts: 163 ✭✭stephenlane80


    Heres a little trickaroo you can use

    I'll give an example in c# but you can do it in any language, you need to post the following query string to the yahoo web server and you will get back a .csv file with the feed data:

    "http://uk.old.finance.yahoo.com/d/quotes.csv?s=SYMBOL&f=sl1d1t1c1ohgv&e=.csv"

    you change the red bit called symbol for the symbol you want, this is an AIB example:
    "http://uk.old.finance.yahoo.com/d/quotes.csv?s=AIB&f=sl1d1t1c1ohgv&e=.csv"

    and this is a FDB exmaple, its symbol is EG7.IR :
    "http://uk.old.finance.yahoo.com/d/quotes.csv?s=EG7.IR&f=sl1d1t1c1ohgv&e=.csv"

    Here is the c# example to parse the data from the csv file into a string:

    string symbol = "AIB";
    string url = "http://uk.old.finance.yahoo.com/d/quotes.csv?s=" + symbol +"&f=sl1d1t1c1ohgv&e=.csv";

    WebRequest request = WebRequest.Create(url);
    WebResponse response = request.GetResponse();
    StreamReader reader = new StreamReader(response.GetResponseStream());
    string str = reader.ReadLine();

    The data you get back to the string will be like this:
    AIB,7.05, 4:32PM,12/23/2008,-0.45,7.20,7.20,7.10,475

    The schema is as follows:

    Symbol last_trade trade_time trade_date change open high low volume

    Hope this helps, its probably a good enough method if the application you have in mind isnt too data intensive. if it is it might be a bettersolution to cache the data locally and refresh every 5 mins or so


  • Closed Accounts Posts: 6,151 ✭✭✭Thomas_S_Hunterson


    Evil Phil wrote: »
    Anyone know where to get them? I'm looking for an API rather than an on screen ticker.

    You'd have to pay to get access to the real-time data.

    To get the delayed feeds, I think scraping is the best option. I don't know of any APIs.


  • Registered Users Posts: 163 ✭✭stephenlane80


    if you want to pay for an api http://www.telekurs-financial.com have a feed for the irish stock exchange, but i think a delay of 15 mins is tolerable for most applications


Advertisement