@@ -175,7 +175,7 @@ def test_get_next_market_open():
175175 == format_datetime_to_unix_timestamp (datetime .datetime (2023 , 6 , 18 , 17 , 0 , 0 , tzinfo = NY_TZ ))
176176 )
177177
178- # fx & metal out of market hours on Sunday Dec 24 2024 after 10pm UTC
178+ # fx & metal out of market hours on Sunday Dec 24 2023 after 5pm ET
179179 assert (
180180 get_next_market_open ("fx" , FX_METAL_HOLIDAY_SUN_2023_12_24_17 )
181181 == format_datetime_to_unix_timestamp (datetime .datetime (2023 , 12 , 25 , 17 , 0 , 0 , tzinfo = NY_TZ ))
@@ -185,6 +185,12 @@ def test_get_next_market_open():
185185 == format_datetime_to_unix_timestamp (datetime .datetime (2023 , 12 , 25 , 17 , 0 , 0 , tzinfo = NY_TZ ))
186186 )
187187
188+ # fx & metal out of market hours on holiday Dec 25 2023 before 5pm ET
189+ assert (
190+ get_next_market_open ("fx" , datetime .datetime (2023 , 12 , 25 , 8 , 15 , 0 , tzinfo = NY_TZ ))
191+ == format_datetime_to_unix_timestamp (datetime .datetime (2023 , 12 , 25 , 17 , 0 , 0 , tzinfo = NY_TZ ))
192+ )
193+
188194 # fx & metal holiday
189195 assert (
190196 get_next_market_open ("fx" , FX_METAL_HOLIDAY_SUN_2023_1_1 )
0 commit comments