Fix for stock price fetch from ASX

Chris Good goodchris96 at gmail.com
Mon Mar 5 15:13:34 EST 2018


The ASX has changed their m.asx.com.au web page on approx. Feb 11 2018 which
means the GnuCash source Australian Stock Exchange no longer works.

There is now a fix for this problem available, but it is not yet included in
the official Finance::Quote module available from CPAN.
If you'd like to manually install the fix now, it is available on github:
Enter
https://github.com/goodvibes2/finance-quote/blob/FqIss80ASX/lib/Finance/Quot
e/ASX.pm
in a browser, click on the Raw button which should open the contents of the
new ASX.pm file on a new page.
Use Control-A to highlight it all, then paste it into a text editor
(say Notepad for Windows, gedit for Linux), then
'Save As' over the top of the existing ASX.pm:

Windows (Strawberry Perl):
  C:\strawberry\perl\site\lib\Finance\Quote\ASX.pm

Linux
  /usr/local/share/perl/5.22.1/Finance/Quote/ASX.pm

Sorry, I don't have a Mac so I cannot provide instructions, but I guess you
just find ASX.pm and replace it with the new version from the above github
link.

The fix goes back to using www.asx.com.au/asx/markets/priceLookup.do which
now works again.
Unfortunately the following fields are no longer available (not needed for
GnuCash anyway):
date, name, div_yield, eps, pe + year_range.
There is a date available but it is always today, so this script does not
return it. GnuCash gnc-fq-helper will default it to today.

Regards, Chris Good



More information about the gnucash-user mailing list