Question

how to fetch stock price from australia stock exchange...www.asx.com.au/

Actually our team is working on a corporate site which would be very soon listed at australia stock exchange. I need to reflect the stock price on home page and details abt stock price etc in details page. what's the best way..does stock exchange provides feed.. and what are options to do it.

regards sd

Was it helpful?

Solution

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.

OTHER TIPS

If you can tolerate a 20 minute delay then the Yahoo! Finance API is very easy to use. A guide to its flags is here -> http://cliffngan.net/a/13 - also, remember to query http://au.finance.yahoo.com for localised currency, time, etc.

Alpha Vantage have a free json/CSV API that just requires you to get a key and supports ASX stocks. Eg to get BHP:

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=BHP.AX&apikey=demo

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.

There are many sites that can give you a 20 minute delayed feed. Try this for example.

Unfortunately, Yahoo closed their free API.

EOD Historical Data (https://eodhistoricaldata.com) offers data for ASX in 'All World' package. You can get it in both CSV and JSON formats.

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.

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

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"]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top