finpricing.utils.holiday
#
Module Contents#
Classes#
Generic enumeration. |
|
- class finpricing.utils.holiday.CalendarTypes[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- NONE = 0#
- WEEKEND = 1#
- UNITED_STATES = 2#
- class finpricing.utils.holiday.Holiday(calendarType: CalendarTypes)[source]#
- is_holiday(date: finpricing.utils.date.Date) bool [source]#
- holiday_united_states(date: finpricing.utils.date.Date) bool [source]#
Return True if the date is a holiday in the United States, False otherwise
Need to verify and enhance the dates. Reference: domokane/FinancePy