[GNC] Finance-Quote 1.57 released!
Bruce Schuck
bschuck at asgard-systems.com
Wed Jul 5 12:20:06 EDT 2023
On 7/4/23 23:22:09 +0000, Richard Ullger wrote:
When prices are updated after midnight, the yahooweb price source is
returning the current date instead of the price date. See below...
On 7/4/23 22:35 -0400, Ken Farley replied:
> My understanding of the new Yahooweb module is that it uses the
> current date when reporting prices. I believe this is because the
> data source from which the quote is built does not provide a "quote
> date" or that sort of information. Therefore, the author of the new
> module had to do something to satisfy the requirements of Gnucash,
> so they chose to use today's date. It does, judging from the Perl
> code, make adjustments if the date returned is not a "work day",
> but doesn't do any other sort of "date correction".
Thank you for that explanation, since I receive GnuCash-user in digest
form I did not see Richard's email until receiving the digest.
Yes, I believe I may have posted this caveat of the YahooWeb module in
the last week or so. It is also noted in the POD documentation of the
module (although I misspelled caveat).
"Yahoo cleverly obscures the trade date using JavaScript. Because of
this the module uses the current date, but accounts for weekends."
I have been investigating the use of the Date::Business module, but that
would require regular maintenance of keeping holidays for multiple
exchanges updated.
But, the YahooWeb module is intended as an emergency module if Yahoo
pulls the plug on access to the API used in the YahooJSON module.
Bruce S.
More information about the gnucash-user
mailing list