From 4ba3538e8eb17a1e291f0e1a0314c5081ab71012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uir=C3=A1=20Caiado?= Date: Mon, 10 Aug 2020 19:38:42 -0300 Subject: [PATCH] Update the Brazilian holidays' calendar Exclude Constitucionalista holiday in 2020 according to a modification made in Bazilian market calendar due to Coronavirus pandemic --- trading_calendars/exchange_calendar_bvmf.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/trading_calendars/exchange_calendar_bvmf.py b/trading_calendars/exchange_calendar_bvmf.py index ee07b3c1..2b5adc91 100644 --- a/trading_calendars/exchange_calendar_bvmf.py +++ b/trading_calendars/exchange_calendar_bvmf.py @@ -81,11 +81,18 @@ day=1, ) # Constitutionalist Revolution -Constitucionalista = Holiday( - 'Constitucionalista', +Constitucionalista_prepandemic = Holiday( + 'Constitucionalista pre-pandemia', month=7, day=9, - start_date='1998-01-01' + start_date='1998-01-01', + end_date='2020-01-01' +) +Constitucionalista_pospandemic = Holiday( + 'Constitucionalista pos-pandemia', + month=7, + day=9, + start_date='2021-01-01' ) # Independence Day Independencia = Holiday( @@ -205,7 +212,8 @@ def regular_holidays(self): CorpusChristi, Tiradentes, DiaTrabalho, - Constitucionalista, + Constitucionalista_prepandemic, + Constitucionalista_pospandemic, Independencia, Aparecida, Finados,