Skip to content

Commit 3e1acbd

Browse files
authored
XTKS: Add 2026 holidays (#515)
1 parent 4157238 commit 3e1acbd

File tree

3 files changed

+277
-0
lines changed

3 files changed

+277
-0
lines changed

exchange_calendars/exchange_calendar_xtks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
class XTKSExchangeCalendar(ExchangeCalendar):
5151
"""
5252
Exchange calendar for the Tokyo Stock Exchange
53+
https://www.jpx.co.jp/english/corporate/about-jpx/calendar/index.html
5354
5455
First session: 9:00am - 11:30am
5556
Lunch Break: 11:30am - 12:30pm

exchange_calendars/xtks_holidays.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,21 @@ def sunday_to_wednesday(dt):
101101
Timestamp("2023-03-21"),
102102
Timestamp("2024-03-20"),
103103
Timestamp("2025-03-20"),
104+
Timestamp("2026-03-20"),
105+
Timestamp("2027-03-22"),
106+
Timestamp("2028-03-20"),
107+
Timestamp("2029-03-20"),
108+
Timestamp("2030-03-20"),
109+
Timestamp("2031-03-21"),
110+
Timestamp("2032-03-20"),
111+
Timestamp("2033-03-21"),
112+
Timestamp("2034-03-20"),
113+
Timestamp("2035-03-21"),
114+
Timestamp("2036-03-20"),
115+
Timestamp("2037-03-20"),
116+
Timestamp("2038-03-20"),
117+
Timestamp("2039-03-21"),
118+
Timestamp("2040-03-20"),
104119
]
105120

106121
# The Golden Week holidays (late April - early May) are listed in reverse
@@ -267,6 +282,22 @@ def sunday_to_wednesday(dt):
267282
Timestamp("2023-09-23"),
268283
Timestamp("2024-09-23"),
269284
Timestamp("2025-09-23"),
285+
Timestamp("2026-09-23"),
286+
Timestamp("2027-09-23"),
287+
Timestamp("2028-09-22"),
288+
Timestamp("2029-09-24"),
289+
Timestamp("2030-09-23"),
290+
Timestamp("2031-09-23"),
291+
Timestamp("2032-09-22"),
292+
Timestamp("2033-09-23"),
293+
Timestamp("2034-09-23"),
294+
Timestamp("2035-09-24"),
295+
Timestamp("2036-09-22"),
296+
Timestamp("2036-09-22"),
297+
Timestamp("2037-09-23"),
298+
Timestamp("2038-09-23"),
299+
Timestamp("2039-09-23"),
300+
Timestamp("2040-09-22"),
270301
]
271302

272303
# If the Autumnal Equinox falls on a Wednesday, the Tuesday before
@@ -276,6 +307,9 @@ def sunday_to_wednesday(dt):
276307
CitizensHolidaySilverWeek = [
277308
Timestamp("2009-09-22"),
278309
Timestamp("2015-09-22"),
310+
Timestamp("2026-09-22"),
311+
Timestamp("2032-09-21"),
312+
Timestamp("2037-09-22"),
279313
]
280314

281315
RespectForTheAgedDayThrough2002 = Holiday(

0 commit comments

Comments
 (0)