June 19, 2023 - is a holiday
ericvoots opened this issue · 3 comments
ericvoots commented
Hi,
Using NYSE the package is returning 2023-06-19 as a date the market was open. The market was not open that day and was on a monday and the market was closed for juneteenth.
ericvoots commented
It also missing the same holiday but on 2022-06-20
ericvoots commented
example code
import pandas_market_calendars as mcal
nyse = mcal.get_calendar('NYSE')
date_to_check = pd.Timestamp('2022-02-21')
market_holidays = nyse.holidays().holidays
is_holiday = date_to_check in market_holidaysis_holiday
True
date_to_check = pd.Timestamp('2022-06-20')
is_holiday = date_to_check in market_holidays
is_holiday
False
ericvoots commented
actually my mistake, i had an old docker container and the version of this package was out of date, disregard