[GNC] "Inf" in stock data => cannot update prices
John Ralls
jralls at ceridwen.us
Sat Mar 15 12:55:13 EDT 2025
Fred,
It returned “Inf” for dividend yield, which isn’t a number GnuCash cares about, but perhaps the parser expected a number and complained. What error did you get? Did GnuCash crash?
FWIW, I tried just now and yahoo_json returned
> /Applications/Gnucash.app/Contents/MacOS/gnucash-cli -V -Q dump yahoo_json ACLLF
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli
ACLLF:
year_range => 25.82 - 36.1
exchange => OTC Markets OTCPK
close => 0
last => 33.28
high => 33.36
symbol => ACLLF
method => yahoo_json
div_yield => 0
success => 1
name => ACLLF (Atco Ltd.)
volume => 200
open => 33.31
pe => 12.464418
low => 33.31
type => EQUITY
isodate => 2025-03-14
date => 03/14/2025
currency => USD
eps => 2.67
Regards,
John Ralls
> On Mar 15, 2025, at 07:52, Fred Tydeman <tydeman.fred at gmail.com> wrote:
>
> In trying to do my weekly stock price update in GnuCash 5.10 in Fedora
> Linux 41,
> one of my stocks returned "Inf" in one of the price fields. It is similar
> to the problem
> I had with this stock in the past where there was a "NaN" value.
>
> I understand "Inf" is short for infinity and results from non-zero/zero.
> Whereas "NaN" (meaning Not-a-Number) results from zero/zero.
>
> Below is the relevant data from the log/debug file.
>
> "ACLLF":{"div_yield":Inf,"high":33.36,"exchange":"OTC Markets
> OTCPK","eps":2.67,"open":33.31,"low":33.31,"symbol":"ACLLF","volume":200,"method":"yahoo_json","success":1,"type":"EQUITY","name":"ACLLF
> (Atco
> Ltd.)","date":"03/14/2025","close":0,"currency":"USD","last":33.28,"year_range":"
> 25.82 - 36.1","pe":12.464418,"isodate":"2025-03-14"},
>
> Is this a known bug?
> Or, should I open a new bug?
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user
mailing list