Retrieving stock prices fails

David Reiser dbreiser at earthlink.net
Sun Feb 15 16:44:03 EST 2009


On Feb 15, 2009, at 2:23 PM, Forest Bond wrote:

> Hi,
>
> On Wed, Jan 14, 2009 at 10:44:06PM -0700, Trevor Farlow wrote:
>> Have you tried other pricing sources besides the two Europe  
>> entries, Julius?
>>
>> I have been having consistent retrieval failure for the last few  
>> months
>> using the sources Single: Yahoo or Multiple: USA (Yahoo, Fool ...)  
>> with
>> the error: "Unable to retrieve quotes for these items:" followed by  
>> all
>> my securities. In response to this thread I tried the Single: Europe
>> source and it fetched prices. Notably, however, the source Multiple:
>> Europe (Yahoo...) fails with the same error as above.
>
> Bug with patch that works around the Finance::Quote / yahoo problem  
> that causes
> this issue:
>
>  http://bugzilla.gnome.org/show_bug.cgi?id=571865
>
> Can you test that this patch works for you, too, and comment on the  
> bug?
>
Well, you will store incorrect dates if you ever retrieve quotes on a  
weekend.

See http://rt.cpan.org/Public/Bug/Display.html?id=40169 for more  
discussion of part of a solution. Also, attached is a patch for  
finance-quote that reorders the request for data fields so that both  
USA and Europe can use the same Base.pm. It also allows retrieval of  
European funds using ISIN+currency symbol. And if fixes the problem  
where fund quotes come back in pence instead of pounds for UK funds.

The problem with the patch is that it is subject to failing the next  
time yahoo changes something (maybe). I have only done a little  
looking, but I think Yahoo Asia and Australia use the same data  
structure as the US (Europe is the only current aberration)

Dave
--
David Reiser
dbreiser at earthlink.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fqyahoo2.patch
Type: application/octet-stream
Size: 2390 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-user/attachments/20090215/56d19d2f/attachment.obj 
-------------- next part --------------




More information about the gnucash-user mailing list