Open mrdvt92 opened 1 year ago
Hi @mrdvt92
I will evaluate your proposal, based on what you write I think we can perhaps exchange Date::Holidays::USFederal for Date::Holidays::US
Aside from Juneteenth, would it make sense to have a separate module for US Stock Exchange holidays? While many of them overlap, one example of a difference is that the US stock markets are closed on Good Friday every year. Bruce S.
separate module for US Stock Exchange holidays?
Based on my research, the NYSE and Nasdaq both add Good Friday but they are open Columbus Day and Veteran's Day. I could not find a policy for "in lieu of" days. The bond markets (SIFMA) appear to stick to Federal Holidays except for they are open on Veteran's Day. Banks appear to follow the Federal holidays but are not required to. States are not required the follow Federal Holidays either but they have renamed some of the holidays.
So, to do it right we really need a US (Federal), NYSE, Nasdaq, SIFMA, and then 50+ for each state, district, territory, etc.
ref: https://www.aarp.org/money/investing/info-2023/stock-market-holidays.html ref: https://www.aarp.org/money/investing/info-2023/federal-bank-holidays.html
Issue Template
Description
I could not get in touch with the developer of Date::Holidays::USFederal and it does not support the new Juneteenth holiday nor historical holidays. So, I wrote Date::Holidays::US. It works as a standalone module and I believe it is in the correct format to support your API.
Bugs and Issues
I was hoping that you might update Date::Holidays::Adapter::US to search for Date::Holidays::US and if it is installed then use it over Date::Holidays::USFederal.
The below code appears to work but I don't really understand your API so it might not be the logic you would want to implement.
Here's an example script.