After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760529 - Get Quotes updates value just once per day
Get Quotes updates value just once per day
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Currency and Commodity
2.6.11
Other Mac OS
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2016-01-12 14:26 UTC by Paolo Maero
Modified: 2018-06-29 23:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Maero 2016-01-12 14:26:34 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.
Comment 1 Paolo Maero 2016-01-12 15:01:09 UTC
Just downloaded 2.6.11, the behavior is the same.
Comment 2 John Ralls 2016-01-12 15:17:09 UTC
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.
Comment 3 John Ralls 2016-01-12 20:06:26 UTC
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.
Comment 4 John Ralls 2018-06-29 23:46:19 UTC
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.