13

How can I fetch a stock's price from the Australian Stock Exchange (ASX): www.asx.com.au/

Actually our team is working on a corporate site which would be listed soon at Australian Stock Exchange. I need to display details about the stock (including the price) on the home page. How can I do this?

Do stock exchanges provide data feeds? If so, how do I access these feeds?

5 Answers 5

2

ASX must have an API. But there seem to be some options such as RSS Feeds. Live feeds are not free, free feeds are 20minutes delayed.

1

I think that talking to ASX is going to be the way to go. They'll certainly provide you with real time information, but at a price.

0

Yahoo Finance offer a delayed service (15 mins) on ASX listed companies. You could also fetch it with a screen scrape of google finance (also delayed). Since you are not yet listed it may take a while before either pick up your symbol. I believe both get their data from csinitiative which is a pay-for service. I'm not sure what programming language you are using but the Yahoo service certainly has many libraries already built in python/ruby/java.

-1

Getting data from Yahoo is straight forward.

Here's a link for MSFT: http://ichart.yahoo.com/table.csv?s=MSFT

To get data for the ASX add .AX to the end of the code, eg

http://ichart.yahoo.com/table.csv?s=MPL.AX

I've written an article about about acquiring and graphing stock market data:

https://www.codeproject.com/Articles/1069489/Highstock-plus-Data-Forge-plus-Yahoo

4
  • 1
    This service has been discontinued. Nov 3, 2017 at 5:19
  • 1
    Yes most annoyingly Yahoo has terminated their stock APIs. I'm using Alpha Vantage these days, here's a blog post about it: the-data-wrangler.com/… Nov 4, 2017 at 7:13
  • In response to @AshleyDavis comment, Alpha Vantage now no longer supports ASX, or a variety of other markets for that matter, they have scaled back their service significantly. Oct 4, 2022 at 22:27
  • For anyone after a good data source try eodhistoricaldata.com. That's what I'm using these days, It's a paid service, but pretty reasonable. It's easy to use. And it does all the exchanges, crypto and probably other markets. Oct 6, 2022 at 0:08
-6

Adding an ".AX" at the end of each of stocks enabled me to get the data:

stock_list = ["ANZ.AX", "WBC.AX", "CBA.AX", "QAN.AX", "WOW.AX"]

2

Not the answer you're looking for? Browse other questions tagged or ask your own question.