Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added BMF calendar holiday for new year's eve on Sunday #318

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pandas_market_calendars/calendars/bmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@
day=30,
days_of_week=(FRIDAY,),
)
# New Year's Eve falls on Sunday
AnoNovoDomingo = Holiday(
"Ano Novo Domingo",
month=12,
day=29,
days_of_week=(FRIDAY,),
)

##########################
# Non-recurring holidays
Expand Down Expand Up @@ -154,7 +161,7 @@ class BMFExchangeCalendar(MarketCalendar):
- Proclamation of the Republic (November 15)
- Day of Black Awareness (November 20 after 2004 until 2021, skipping 2020)
- Christmas (December 24 and 25)
- Day before New Year's Eve (December 30 if NYE falls on a Saturday)
- Friday before New Year's Eve (December 30 or 29 if NYE falls on a Saturday or Sunday)
- New Year's Eve (December 31)
"""

Expand Down Expand Up @@ -194,6 +201,7 @@ def regular_holidays(self):
Natal,
AnoNovo,
AnoNovoSabado,
AnoNovoDomingo,
]
)

Expand Down
Loading