Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taiwan (XTAI) missing trading day 2024-09-16 #413

Open
dinohsu1019 opened this issue Sep 16, 2024 · 3 comments
Open

Taiwan (XTAI) missing trading day 2024-09-16 #413

dinohsu1019 opened this issue Sep 16, 2024 · 3 comments
Labels
calendar update Calendar needs updating

Comments

@dinohsu1019
Copy link

Taiwan calendar (XTAI) should be updated, since 2024-09-16 is a trading day, version 4.5.6, thanks.

Code:
import pandas as pd
import exchange_calendars as xcals
xtai = xcals.get_calendar("XTAI") # Taiwan stock exchange
all_xtai_trade_dates = list(xtai.schedule.index.values)
print(xcals.version)
list(filter(lambda x: pd.Timestamp('2024-09-01') <= x <= pd.Timestamp('2024-09-30'), all_xtai_trade_dates))

Output:
4.5.6
[numpy.datetime64('2024-09-02T00:00:00.000000000'),
numpy.datetime64('2024-09-03T00:00:00.000000000'),
numpy.datetime64('2024-09-04T00:00:00.000000000'),
numpy.datetime64('2024-09-05T00:00:00.000000000'),
numpy.datetime64('2024-09-06T00:00:00.000000000'),
numpy.datetime64('2024-09-09T00:00:00.000000000'),
numpy.datetime64('2024-09-10T00:00:00.000000000'),
numpy.datetime64('2024-09-11T00:00:00.000000000'),
numpy.datetime64('2024-09-12T00:00:00.000000000'),
numpy.datetime64('2024-09-13T00:00:00.000000000'),
numpy.datetime64('2024-09-18T00:00:00.000000000'),
numpy.datetime64('2024-09-19T00:00:00.000000000'),
numpy.datetime64('2024-09-20T00:00:00.000000000'),
numpy.datetime64('2024-09-23T00:00:00.000000000'),
numpy.datetime64('2024-09-24T00:00:00.000000000'),
numpy.datetime64('2024-09-25T00:00:00.000000000'),
numpy.datetime64('2024-09-26T00:00:00.000000000'),
numpy.datetime64('2024-09-27T00:00:00.000000000'),
numpy.datetime64('2024-09-30T00:00:00.000000000')]

@mcazim98
Copy link

Faced this same issue. I think it has to do with the Mid autumn timings for Taiwan.

@maread99 maread99 added the calendar update Calendar needs updating label Sep 20, 2024
@maread99
Copy link
Collaborator

maread99 commented Sep 20, 2024

Would be fixed by #414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar update Calendar needs updating
Projects
None yet
Development

No branches or pull requests

4 participants