Skip to content

Commit 7401e6b

Browse files
committed
fixed bug for missing holiday on 2018-12-31
1 parent 13e9216 commit 7401e6b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

PyFin/DateUtilities/Calendar.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ cdef set sse_holDays = {Date(2005, 1, 3),
434434
Date(2018, 10, 3),
435435
Date(2018, 10, 4),
436436
Date(2018, 10, 5),
437+
Date(2018, 12, 31),
437438
Date(2019, 1, 1),
438439
Date(2019, 2, 4),
439440
Date(2019, 2, 5),

PyFin/tests/DateUtilities/testCalendar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def testChinaSSE(self):
105105
Date(2018, 6, 16), Date(2018, 6, 17), Date(2018, 6, 18),
106106
Date(2018, 9, 22), Date(2018, 9, 23), Date(2018, 9, 24),
107107
Date(2018, 10, 1), Date(2018, 10, 2), Date(2018, 10, 3), Date(2018, 10, 4), Date(2018, 10, 5), Date(2018, 10, 6), Date(2018, 10, 7),
108+
Date(2018, 12, 31),
108109
# China Shanghai Securities Exchange holiday list in the year 2019
109110
Date(2019, 1, 1),
110111
Date(2019, 2, 4), Date(2019, 2, 5), Date(2019, 2, 6), Date(2019, 2, 7), Date(2019, 2, 8),

0 commit comments

Comments
 (0)