GNOME Bugzilla – Bug 760529
Get Quotes updates value just once per day
Last modified: 2018-06-29 23:46:19 UTC
In version 2.6.10 I have set up "get online quotes" for USD/EUR. Until 2.6.7 (last version I used) I could invoke "Get Quotes" from time to time and get new exchange rates every time, ending up having more exchange rates in the same day. In 2.6.10 only the first exchange rate is read, subsequent "Get Quotes" do not add new exchange rates. If I delete the latest exchange rate and execute "Get Quotes" again I get the correct up-to-date exchange rate, but again subsequent invocation of Get Quotes do not add subsequent exchange rates. If I open again GnuCash the next day (or wait til next day) then the exchange rate of the new day is correctly imported, but again subsequent Get Quotes do not add new exchange rates. It seems like 2.6.10 only get one exchange rate per day, denying subsequent requests. No erro appear, just Get Quotes does nothing. The same happens for stock quotations.
Just downloaded 2.6.11, the behavior is the same.
You're correct that GnuCash only retains one quote per day now, because that's all that it can use. That was changed in 2.6.8 as part of correcting the jitter one encountered when entering several multi-currency transactions. It is supposed to update that one price, though, and seems not to be.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution. The fix is in Scheme, so if you're so inclined you can easily fix your installed GnuCash: Control-click on Gnucash and select "Show Package Contents" from the context menu. Navigate to Contents:Resources:share:gnucash:scm:gnucash and control-click on price-quotes.scm. Select Open With... from the context menu, select Other... and select TextEdit. Use command-L to open the Go To Line dialog and enter 415. Change that line from (if (> (gnc-price-get-source saved-price) PRICE-SOURCE-FQ) to (if (>= (gnc-price-get-source saved-price) PRICE-SOURCE-FQ) Save and quit TextEdit.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=760529. Please update any external references or bookmarks.