Wed Apr 3 13:40:48 EDT 2024 David G. Pickett wrote:

Looks good, (only error because I need to switch DIA back to yahoo) and slow but much better. A later run under cron got lots of
errors. Do they ration by IP address? If it is by frequency, maybe we
should purposely send requests only every 10 seconds to simulate a
human user?  It cannot make it much slower.
I've been meaning to ask how many securities are you attempting to get prices for?

Early on in this thread I called out the "500" responses. A "500" typically gets returned from a web page if the site has an issue. When Yahoo turned off the previous APIs F::Q was using, the HTTP response was one of the "40?" that would be expected.

With no one else reporting the same issue my sense is that your errors are the result of something on your end. I also use YahooJSON, and a cron job fired every weekday at 13:30 Pacific time (16:30 Eastern) updates about 20 securities in less than 15 seconds. My log from today's (04/03/2024) run:

=====
gnc-get-quote.sh start: Wed Apr  3 01:30:01 PM PDT 2024
DATAFILE: /home/bschuck/Documents/bschuck.gnucash
BKUPFILE: /home/bschuck/Documents/bschuck.gnucash.20240403133001.gnucash
Found Finance::Quote version 1.59.
gz_thread_func EOF
gnc-get-quote.sh completed: Wed Apr  3 01:30:13 PM PDT 2024
=====

I would not be surprised if you have a sufficiently large number of securities that Yahoo has mechanisms in place to detect and block/limit further lookups.

Bruce S.
_______________________________________________
gnucash-user mailing list
gnucash-user@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.

Reply via email to