@@ -175,7 +175,7 @@ def test_get_next_market_open():
175
175
== format_datetime_to_unix_timestamp (datetime .datetime (2023 , 6 , 18 , 17 , 0 , 0 , tzinfo = NY_TZ ))
176
176
)
177
177
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
179
179
assert (
180
180
get_next_market_open ("fx" , FX_METAL_HOLIDAY_SUN_2023_12_24_17 )
181
181
== 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():
185
185
== format_datetime_to_unix_timestamp (datetime .datetime (2023 , 12 , 25 , 17 , 0 , 0 , tzinfo = NY_TZ ))
186
186
)
187
187
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
+
188
194
# fx & metal holiday
189
195
assert (
190
196
get_next_market_open ("fx" , FX_METAL_HOLIDAY_SUN_2023_1_1 )
0 commit comments