trading_day = qb.TradingCalendar.GetTradingDay(datetime(2023, 4, 7))
print (trading_day.BusinessDay)
print (trading_day.Weekend)
print (trading_day.PublicHoliday)

output is
Trye, False, False

However, Apr 7, 2023 is Good Friday and the markets were closed. How to overcome this bug?

Author

Barry Plasmid

April 2023