コード例 #1
0
 def regular_holidays(self):
     # https://www.theice.com/publicdocs/futures_us/exchange_notices/NewExNot2016Holidays.pdf # noqa
     return HolidayCalendar([
         USNewYearsDay,
         GoodFriday,
         Christmas
     ])
コード例 #2
0
 def special_closes(self):
     return [(time(13),
              HolidayCalendar([
                  USMartinLutherKingJrAfter1998, USPresidentsDay,
                  USMemorialDay, USIndependenceDay, USLaborDay,
                  USThanksgivingDay
              ]))]
コード例 #3
0
 def special_closes(self):
     return [(
         time(12, 15),
         HolidayCalendar([
             USBlackFridayInOrAfter1993,
         ])
     )]
コード例 #4
0
 def regular_holidays(self):
     return HolidayCalendar([
         USNewYearsDay,
         USMartinLutherKingJrAfter1998,
         USPresidentsDay,
         GoodFriday,
         USIndependenceDay,
         USMemorialDay,
         USLaborDay,
         USThanksgivingDay,
         Christmas
     ])
コード例 #5
0
 def regular_holidays(self):
     return HolidayCalendar([
         USNewYearsDay,
         GoodFriday,
         Christmas,
     ])
コード例 #6
0
 def regular_holidays(self):
     return HolidayCalendar(holiday_set)
コード例 #7
0
 def special_closes(self):
     return [(self.regular_early_close,
              HolidayCalendar([ChristmasEveEarlyClose2010Onwards]))]
コード例 #8
0
 def regular_holidays(self):
     return HolidayCalendar([
         TSXNewYearsDay, FamilyDay, GoodFriday, VictoriaDay, CanadaDay,
         CivicHoliday, LaborDay, CanadianThanksgiving, Christmas,
         WeekendChristmas, BoxingDay, WeekendBoxingDay
     ])