Skip to content

Commit

Permalink
XBKK: Add missing holidays
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling authored and gerrymanoim committed Jan 28, 2025
1 parent 35cd376 commit 62a50f8
Show file tree
Hide file tree
Showing 3 changed files with 1,247 additions and 0 deletions.
1 change: 1 addition & 0 deletions exchange_calendars/exchange_calendar_xbkk.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
class XBKKExchangeCalendar(ExchangeCalendar):
"""
Calendar for the Stock Exchange of Thailand in Bangkok.
https://www.set.or.th/en/about/event-calendar/holiday
Open Time: 10:00 AM, Indochina Time (ICT)
Close Time: 4:30 PM, Indochina Time (ICT)
Expand Down
28 changes: 28 additions & 0 deletions exchange_calendars/xbkk_holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def songkran_festival_last_day_observance(dt: datetime.datetime) -> datetime.dat
pd.Timestamp("2009-01-02"),
pd.Timestamp("2013-12-30"),
pd.Timestamp("2015-01-02"),
pd.Timestamp("2023-12-29"),
]

asanha_bucha_bridge_days = [
Expand All @@ -154,11 +155,14 @@ def songkran_festival_last_day_observance(dt: datetime.datetime) -> datetime.dat
queens_birthday_bridge_days = [
pd.Timestamp("2010-08-13"),
pd.Timestamp("2014-08-11"),
pd.Timestamp("2025-06-02"),
pd.Timestamp("2025-08-11"),
]

coronation_bridge_days = [
pd.Timestamp("2015-05-04"),
pd.Timestamp("2016-05-06"),
pd.Timestamp("2023-05-05"),
]

vesak_bridge_days = [
Expand All @@ -175,6 +179,12 @@ def songkran_festival_last_day_observance(dt: datetime.datetime) -> datetime.dat
pd.Timestamp("2010-05-21"), # Closure Due to Security Concerns
pd.Timestamp("2012-04-09"), # Bank Holiday
pd.Timestamp("2017-10-26"), # Cremation of King Bhumibol
pd.Timestamp("2021-02-12"), # Special Holiday
pd.Timestamp("2021-09-24"), # Special Holiday
pd.Timestamp("2021-10-22"), # Substitution for Chulalongkorn Day
pd.Timestamp("2022-07-29"), # Special Holiday
pd.Timestamp("2022-10-14"), # Special Holiday
pd.Timestamp("2024-04-12"), # Special Holiday
]

# Lunar Holidays
Expand Down Expand Up @@ -225,6 +235,12 @@ def songkran_festival_last_day_observance(dt: datetime.datetime) -> datetime.dat
"2018-03-01",
"2019-02-19",
"2020-02-10",
"2021-02-26",
"2022-02-16",
"2023-03-06",
"2024-02-26",
"2025-02-12",
"2026-03-03"
]
)

Expand Down Expand Up @@ -272,6 +288,12 @@ def songkran_festival_last_day_observance(dt: datetime.datetime) -> datetime.dat
"2018-05-29",
"2019-05-20",
"2020-05-06",
"2021-05-26",
"2022-05-16",
"2023-06-05",
"2024-05-22",
"2025-05-12",
"2026-06-01",
]
)

Expand Down Expand Up @@ -319,5 +341,11 @@ def songkran_festival_last_day_observance(dt: datetime.datetime) -> datetime.dat
"2018-07-27",
"2019-07-16",
"2020-07-06",
"2021-07-26",
"2022-07-13",
"2023-08-01",
"2024-07-22",
"2025-07-10",
"2026-07-29",
]
)
Loading

0 comments on commit 62a50f8

Please sign in to comment.