Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Irish Stock Exchange data feeds?

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


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


Comments

  • Registered Users, Registered Users 2 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, Registered Users 2 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