mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-16 11:18:11 +08:00
Adds Hurricane Sandy related closings to non-trading days.
Adds the closings on 10/29/2012 and 10/31/2012 to the trading calendar rules.
This commit is contained in:
@@ -146,3 +146,21 @@ non_trading_days = non_trading_ruleset.between(start, end, inc=True)
|
||||
for day_num in range(11, 17):
|
||||
non_trading_days.append(
|
||||
datetime(2001, 9, day_num, tzinfo=pytz.utc))
|
||||
|
||||
# Add closings due to Hurricane Sandy in 2012
|
||||
# http://en.wikipedia.org/wiki/Hurricane_sandy
|
||||
#
|
||||
# The stock exchange was closed due to Hurricane Sandy's
|
||||
# impact on New York.
|
||||
# It closed on 10/29 and 10/30, reopening on 10/31
|
||||
# October 2012
|
||||
# Su Mo Tu We Th Fr Sa
|
||||
# 1 2 3 4 5 6
|
||||
# 7 8 9 10 11 12 13
|
||||
# 14 15 16 17 18 19 20
|
||||
# 21 22 23 24 25 26 27
|
||||
# 28 29 30 31
|
||||
|
||||
for day_num in range(29, 31):
|
||||
non_trading_days.append(
|
||||
datetime(2012, 10, day_num, tzinfo=pytz.utc))
|
||||
|
||||
Reference in New Issue
Block a user