rsheftel / pandas_market_calendars

Exchange calendars to use with pandas for trading applications
MIT License
803 stars 173 forks source link

Change in JPX Market Closing Time #350

Closed HinnyTsang closed 1 week ago

HinnyTsang commented 3 weeks ago

Update: JPX Market Closing Time

Summary

The closing market time for JPX has been extended to 15:30 PM (local time). The current version doesn't resolve for the change.

Test code:

# test.py
import pandas_market_calendars as mcal

calendar = mcal.get_calendar("XJPX")

schedule = calendar.schedule(
    start_date="2024-10-25", end_date="2024-11-07", tz="Asia/Tokyo"
)
print(f"version: {mcal.__version__}")
print(schedule)

Output:

~$python ./test.py
version: 4.4.1
                         market_open               break_start                 break_end              market_close
2024-10-25 2024-10-25 09:00:00+09:00 2024-10-25 11:30:00+09:00 2024-10-25 12:30:00+09:00 2024-10-25 15:00:00+09:00
2024-10-28 2024-10-28 09:00:00+09:00 2024-10-28 11:30:00+09:00 2024-10-28 12:30:00+09:00 2024-10-28 15:00:00+09:00
2024-10-29 2024-10-29 09:00:00+09:00 2024-10-29 11:30:00+09:00 2024-10-29 12:30:00+09:00 2024-10-29 15:00:00+09:00
2024-10-30 2024-10-30 09:00:00+09:00 2024-10-30 11:30:00+09:00 2024-10-30 12:30:00+09:00 2024-10-30 15:00:00+09:00
2024-10-31 2024-10-31 09:00:00+09:00 2024-10-31 11:30:00+09:00 2024-10-31 12:30:00+09:00 2024-10-31 15:00:00+09:00
2024-11-01 2024-11-01 09:00:00+09:00 2024-11-01 11:30:00+09:00 2024-11-01 12:30:00+09:00 2024-11-01 15:00:00+09:00
2024-11-05 2024-11-05 09:00:00+09:00 2024-11-05 11:30:00+09:00 2024-11-05 12:30:00+09:00 2024-11-05 15:00:00+09:00
2024-11-06 2024-11-06 09:00:00+09:00 2024-11-06 11:30:00+09:00 2024-11-06 12:30:00+09:00 2024-11-06 15:00:00+09:00
2024-11-07 2024-11-07 09:00:00+09:00 2024-11-07 11:30:00+09:00 2024-11-07 12:30:00+09:00 2024-11-07 15:00:00+09:00

Additional Information

Thank you for your attention to this update!

rsheftel commented 2 weeks ago

Thank you for the update. If you want to submit a PR that would be great. If not I will definitely get to it when I have time.

rsheftel commented 1 week ago

Resolved by PR #351