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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Irish Stock Exchange data feeds?

  • 24-12-2008 11:50am
    #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