GNOME Bugzilla – Bug 571865
Finance::Quote yahoo quotes fail
Last modified: 2018-06-29 22:18:15 UTC
Please describe the problem: Price quotes using yahoo are not returning any valid results. Steps to reproduce: Set up securities to use yahoo and try to get price quotes. Actual results: Dialog pops up explaining that all quotes failed. Expected results: Does this happen every time? Other information:
Created attachment 128785 [details] [review] Patch implementing work-around This is actually a glitch with Finance::Quote / yahoo. The problem appears to be caused by the quote having an invalid date field (always "00/00/2000"). The time field actually contains the valid date (with no time). I've not yet informed the Finance::Quote people of the problem. We can work around it in GnuCash. I'm not sure how appropriate that is, but it sure is useful.
Testing solicited from mailing list user experiencing same issue.
Nice idea, but I have a really bad feeling, when I see this patch. It works on the symptoms, not the cause. The empty date shows, there is some format error. I don't believe, it should be fixed by overwriting with the current date. We do not really know the date of the source, it could be somewhere in the last week ... To fix the format error, we must know, which version, the OP on the ML was using? Could you ask him for the output of gnc-fq-check? There was a change in the format of yahoo-europe and there was an adjustment in F::Q 1.15 as I wrote in Bug 553902 [gnucash "price editor" logs stocks ( shares ) but not funds]. Whithout precise information, it is difficult to fix. And finally the fix should be done in F::Q. On the other hand GC should probably be more verbose on errors, when fetching quotes.
Hi, I agree that the patch is ugly. It is a work around. The right fix is for F::Q, but in the meantime, F::Q is broken for everyone, and GnuCash can easily work around the problem. This fix has zero potential to cause problems for working F::Q installations, because 00/00/2000 is never a valid date. My testing indicates that F::Q is not putting the current date in the time field. It is putting the quote date (I'm seeing 2/13/2009 for quotes today). Thus, the work around is functionally correct. I can see why this patch might be rejected, though. It is the wrong place to fix this problem. I don't have the time to put into engaging yet another project to get this fixed, though. Here's a link to the mailing list message where a user described a similar problem: http://lists.gnucash.org/pipermail/gnucash-user/2009-January/028102.html Trevor, can you provide the output of gnc-fq-check? For me, gnc-fq-check reports: ("1.13" "tsp" "vwd" "financecanada" "yahoo_nz" "australia" "usa" "troweprice" "france" "amfiindia" "nasdaq" "usfedbonds" "bmonesbittburns" "aex_options" "yahoo_asia" "troweprice_direct" "tiaacref" "canada" "yahoo" "seb_funds" "yahoo_brasil" "fidelity" "aiahk" "greece" "dwsfunds" "yahoo_australia" "unionfunds" "finland" "lerevenu" "asia" "indiamutual" "hex" "brasil" "asegr" "deka" "nyse" "canadamutual" "fidelity_direct" "asx" "tdwaterhouse" "fool" "trustnet" "ftportfolios_direct" "uk_unit_trusts" "dutch" "ftportfolios" "tdefunds" "nzx" "za" "aex_futures" "fundlibrary" "stockhousecanada_fund" "aex" "yahoo_europe" "nz" "vanguard" "bourso" "europe" "platinum" "maninv") Thanks, Forest
Hi, Patch withdrawn. The correct solution is to upgrade Finance::Quote. I've done this using gnc-fq-update, and quotes are now working correctly. Sorry to waste everyone's time. Thanks, Forest
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=571865. Please update any external references or bookmarks.