Dan Callaghan

Atom feed of ASX closing prices

I was looking for a (free) service that provides Atom feeds of ASX closing prices, so that I could keep an eye on particular companies’ stock performance. I didn't need real-time pricing or anything like that, just so long as the new price popped up in my Google Reader overnight.

Even though the closing price data is available from plenty of places (including from the ASX itself), I couldn’t find machine-readable feeds anywhere. So I wrote a little script to scrape the closing prices from the ASX web site. Check out the Wotif Group closing price feed for an example.

It should work with any currently-traded ASX stock. Just substitute the ASX stock symbol into the URL:

http://www.djc.id.au/asx/XXX/closing

Go nuts!

(I actually wrote this code more than two years ago. I've been meaning to blog about it ever since then, but I never got around to it until now. Oops.)

Originally published . Tagged: .