Stock quote can't be updated

John Bonnett jbonnett at internode.on.net
Fri Apr 28 05:22:01 EDT 2017


On 28/04/2017 12:17 PM, John Ralls wrote:
>> On Apr 27, 2017, at 3:40 PM, Frank H. Ellenberger <frank.h.ellenberger at gmail.com> wrote:
>>
>> Hi John,
>>
>> Am 27.04.2017 um 23:52 schrieb John Bonnett:
>>> Hello,
>>>
>>> I am also suddenly having a problem retrieving quotes from ASX
>>> (Australian Stock Exchange). I tried making sure I had the latest Perl
>>> but still no luck. It was all working fine until a few days ago, about
>>> 21 April
>>>
>>> Most of my stocks are on ASX but I have one on NASDAQ that continues to
>>> work OK. All the ASX ones now say they cannot retrieve. Something
>>> changed at ASX?
>>>
>>> I tried running gnc-fq-dump on one stock as follows:
>>>
>>> C:\Program Files (x86)\gnucash\bin>perl gnc-fq-dump asx AFI
>>> Finance::Quote fields Gnucash uses:
>>>     symbol: AFI (deduced)        <= required
>>>       date: ** missing **        <= recommended
>>>   currency: ** missing **        <= required
>>>       last:                      <=
>>>        nav:                      <== one of these
>>>      price:                      <=
>>>   timezone:                      <== optional
>>>
>>> ** This stock quote cannot be used by GnuCash!
>> If you run it with the verbose flag
>> gnc-fq-dump -v asx afi
>> you get additional:
>>
>> All fields returned by Finance::Quote for stock afi
>>
>> stock field value
>> ----- ----- -----
>> afi errormsg: Failed to parse HTML table.
>> afi last: **missing**
>> afi nav: **missing**
>> afi price: **missing**
>> afi success: 0
>>
>> while
>> http://www.asx.com.au/asx/markets/equityPrices.do?by=xCodes&asxCodes¯I <http://www.asx.com.au/asx/markets/equityPrices.do?by=asxCodes&asxCodes¯I>
>> returns some data. So it seems, they modified the layout of the page.
>>
>>> I am on Windows 10.
>>>
>>> Any suggestions?
>> Perhaps Chris can ghelp you.
> That's more a problem for Erik, so I've added him to the cc in case he isn't watching gnucash-user ATM.
>
> Regards,
> John Ralls
>
>
Switching my source to Yahoo Australia rather than ASX fixed this 
problem. It seems ASX has changed their page layouts and fooled the 
screen scraping.

John Bonnett



More information about the gnucash-user mailing list