You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the news, the original Spring Festival holiday is until January 30, 2020 (the sixth day), and the normal opening trading time is January 31, 2020 (the seventh day). Today, the regulatory level issued a notice that the stock and futures exchanges were closed on January 31, and the market opened as usual on February 3. The A-share market opening time is delayed by 1 day.
below codes is my Revise,the business logc is ok after adding a date as '2020-01-31' to XSHG array:
df = exchange_calendar_xshg.precomputed_shanghai_holidays
exchange_calendar_xshg.precomputed_shanghai_holidays = df.insert(0, pd.Timestamp(2020, 1, 31))
trading_calendar = get_calendar("XSHG")
According to the news, the original Spring Festival holiday is until January 30, 2020 (the sixth day), and the normal opening trading time is January 31, 2020 (the seventh day). Today, the regulatory level issued a notice that the stock and futures exchanges were closed on January 31, and the market opened as usual on February 3. The A-share market opening time is delayed by 1 day.
below codes is my Revise,the business logc is ok after adding a date as '2020-01-31' to XSHG array:
df = exchange_calendar_xshg.precomputed_shanghai_holidays
exchange_calendar_xshg.precomputed_shanghai_holidays = df.insert(0, pd.Timestamp(2020, 1, 31))
trading_calendar = get_calendar("XSHG")
the original code can be found from: https://github.com/quantopian/trading_calendars/blob/master/trading_calendars/exchange_calendar_xshg.py
The text was updated successfully, but these errors were encountered: