Market days do not necessarily coincide with public holidays.
For programs that relate to historical dates, such as getting historical data or backtesting, is there some DateTime/Calendar class or module (Java or Python) for US trading days, so I can check if a date is open or not?
Manual checking dates on NYSE website then writing a MarketDate class is cumbersome and error-prone.
For programs that relate to historical dates, such as getting historical data or backtesting, is there some DateTime/Calendar class or module (Java or Python) for US trading days, so I can check if a date is open or not?
Manual checking dates on NYSE website then writing a MarketDate class is cumbersome and error-prone.
