-
Notifications
You must be signed in to change notification settings - Fork 382
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
Data Differences Between trading_calendars
and pandas_market_calendars
#152
Comments
cc @jmccorriston (FYI - @rsheftel ) |
For TSX: I can't find any sources saying that Christmas Eve was a holiday, but I found this source suggesting that the market was open on 2010-12-24 (but closed by 2:41pm ET, suggesting it closed early): https://toronto.ctvnews.ca/modest-tsx-gain-as-trading-takes-a-christmas-break-1.589362 There's also this wiki page on the 9/11 closes around the world (includes TSX): https://en.wikipedia.org/wiki/Closings_and_cancellations_following_the_September_11_attacks So I think the Toronto Stock exchange implementation in |
FWIW https://finance.yahoo.com/quote/RY.TO/history?period1=1292112000&period2=1293753600&interval=1d&filter=history&frequency=1d shows volume on TSX on 2010-12-24. |
For HKG: It looks like Hong Kong only started observing Labour Day in 1999 (https://en.wikipedia.org/wiki/International_Workers%27_Day, "In Hong Kong, 1 May is known as Labour Day and has been considered a public holiday since 1999."). pmc is correct here, tc needs to be updated. Establishment day started in 1997: https://www.scmp.com/news/hong-kong/education-community/article/1983718/everything-you-need-know-about-hong-kongs-return. pmc is correct here, tc needs to be updated. National Day also first observed in 1997: http://www.cnn.com/WORLD/9710/01/china.bday/. pmc is correct, tc needs to be updated. Buddha's birthday also only started as a public holiday in 1998: https://www.cantoneseclass101.com/blog/2020/04/24/celebrating-buddhas-birthday-in-hong-kong/, https://www.officeholidays.com/holidays/hong-kong/the-buddhas-birthday. We should trim the calendar in tc to reflect this. However, it looks like there's still a discrepancy in 1998. pmc suggests that 1998-05-04 should be a trading day while tc suggests it should be a holiday (1998-05-03 actual holiday, observed on the Monday). There are several British holidays that were observed during British rule pre-1997 as well:
It looks like there are a lot of details in the pmc Hong Kong calendar implementation that we are missing in tc. I pinged the person who added them to pmc to see if we can get more info, but my inclination is to pull in the historical calendars that they added to pmc. From what I can tell so far, they are correct. One exception: |
Discussion of pre-1990 NYSE (XNYS) calendar here: #162 |
Discussion of LSE differences here: #163 |
Discussion of XKTS (JPX) differences here: #164 |
re rsheftel/pandas_market_calendars#41
Summary status
trading_calendars
andpandas_market_calendars
#152 (comment)trading_calendars
andpandas_market_calendars
#152 (comment)1994-04-27
inpmc
but not intc
trading_calendars
andpandas_market_calendars
#152 (comment))Extras not covered by diff below:
Details
code generating the table below
XHKG
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
CFE
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
XSWX
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
LSE
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
XSHG
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
XASX
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
TSX
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
BMF
Trading Days only in
trading_calendars
Trading Days only in
pandas_market_calendars
The text was updated successfully, but these errors were encountered: