On 6/18/23 10:34, john wrote:
I'm at a loss. Although at the current moment, YahooWeb isn't required as long other viable quote sources exist. I like the Date::Business module, I just wish its install honored the PERL_USE_MM_DEFAULTS environment variable. It would be trivial to create different holiday subroutines for various exchanges/countries and use the one for the exchange indicated in the data returned. I have started the process CPAN/Pause requires for adopting the Date::Business module namespace if the original author/authors are unresponsive.
OK, that seems to be the best alternative.
I have somewhat good news. I did some testing with Date::Manip without creating a config file. The Date_PrevWorkDay method does skip weekends properly as long the $offset is set to 1 when called on Sat/Sun.
I can replace Date::Business with Date::Manip in YahooWeb. At the very least it will skip back over weekends for all quotes, and not create issues during Date::Business install requiring for user input. We lose holiday calculations, but for an "emergency" use module, better than nothing.
Again, not optimal, but better than the original version where the trade date would be set to "today" regardless of what day F::Q was executed.
Happy Fathers' Day to all the dads. 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.