forked from quantopian/trading_calendars
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f93a3c
commit 00fe9f6
Showing
5 changed files
with
9,126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
from datetime import time | ||
from zoneinfo import ZoneInfo | ||
|
||
from pandas.tseries.holiday import EasterMonday, GoodFriday | ||
|
||
from .common_holidays import ( | ||
boxing_day, | ||
christmas, | ||
christmas_eve, | ||
european_labour_day, | ||
new_years_day, | ||
new_years_eve, | ||
) | ||
from .exchange_calendar import HolidayCalendar, ExchangeCalendar | ||
|
||
NewYearsDay = new_years_day() | ||
LabourDay = european_labour_day() | ||
ChristmasEve = christmas_eve() | ||
Christmas = christmas() | ||
BoxingDay = boxing_day() | ||
NewYearsEve = new_years_eve() | ||
|
||
|
||
class EEXExchangeCalendar(ExchangeCalendar): | ||
""" | ||
Calendar for the European Energy Exchange AG, Leipzig, Germany. | ||
https://www.eex.com/fileadmin/EEX/Downloads/Trading/Calendar/Holiday_Calendar/20230303_Trading_Calendar_EEX_Group.pdf | ||
Open Time: 9:00 AM, CET (Central European Time) | ||
Close Time: 5:30 PM, CET (Central European Time) | ||
Regularly-Observed Holidays: | ||
- New Year's Day | ||
- Good Friday | ||
- Easter Monday | ||
- Labour Day | ||
- Christmas Eve | ||
- Christmas Day | ||
- Boxing Day | ||
- New Year's Eve | ||
""" | ||
|
||
name = "EEX" | ||
|
||
tz = ZoneInfo("Europe/Berlin") | ||
|
||
open_times = ((None, time(9)),) | ||
|
||
close_times = ((None, time(17, 30)),) | ||
|
||
@property | ||
def regular_holidays(self): | ||
return HolidayCalendar( | ||
[ | ||
NewYearsDay, | ||
GoodFriday, | ||
EasterMonday, | ||
LabourDay, | ||
ChristmasEve, | ||
Christmas, | ||
BoxingDay, | ||
NewYearsEve, | ||
] | ||
) |
Oops, something went wrong.