holidays.financial.ny_stock_exchange

Classes

NYSE(*args, **kwargs)

param years:

NewYorkStockExchange(*args, **kwargs)

Official regulations: - https://www.nyse.com/publicdocs/nyse/regulation/nyse/NYSE_Rules.pdf - https://www.nyse.com/markets/hours-calendars Historical data: - s3.amazonaws.com/armstrongeconomics-wp/2013/07/NYSE-Closings.pdf - https://web.archive.org/web/20211101162021/https://www.nyse.com/markets/hours-calendars

NewYorkStockExchangeStaticHolidays()

XNYS(*args, **kwargs)

param years:

class holidays.financial.ny_stock_exchange.NewYorkStockExchange(*args, **kwargs)

Bases: ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

Official regulations: - https://www.nyse.com/publicdocs/nyse/regulation/nyse/NYSE_Rules.pdf - https://www.nyse.com/markets/hours-calendars Historical data: - s3.amazonaws.com/armstrongeconomics-wp/2013/07/NYSE-Closings.pdf - https://web.archive.org/web/20211101162021/https://www.nyse.com/markets/hours-calendars

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

market: str = 'NYSE'

The market’s ISO 3166-1 alpha-2 code.

observed_label = '%s (observed)'
class holidays.financial.ny_stock_exchange.XNYS(*args, **kwargs)

Bases: NewYorkStockExchange

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.financial.ny_stock_exchange.NYSE(*args, **kwargs)

Bases: NewYorkStockExchange

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.financial.ny_stock_exchange.NewYorkStockExchangeStaticHolidays

Bases: object

special_public_holidays = {1888: ((3, 12, 'Blizzard of 1888'), (3, 13, 'Blizzard of 1888'), (11, 30, 'Thanksgiving Friday 1888')), 1889: ((4, 29, 'Centennial of Washington Inauguration'), (4, 30, 'Centennial of Washington Inauguration'), (5, 1, 'Centennial of Washington Inauguration')), 1892: ((10, 12, 'Columbian Celebration'), (10, 21, 'Columbian Celebration')), 1893: (4, 27, 'Columbian Celebration'), 1897: (4, 27, "Grant's Birthday"), 1898: (5, 4, 'Charter Day'), 1899: ((5, 29, 'Monday before Decoration Day'), (7, 3, 'Monday before Independence Day'), (9, 29, 'Admiral Dewey Celebration')), 1900: (12, 24, 'Christmas Eve'), 1901: ((7, 5, 'Friday after Independence Day'), (9, 19, 'Funeral of President McKinley')), 1903: (4, 22, 'Opening of new NYSE building'), 1917: (6, 5, 'Draft Registration Day'), 1918: ((1, 28, 'Heatless Day'), (2, 4, 'Heatless Day'), (2, 11, 'Heatless Day'), (9, 12, 'Draft Registration Day'), (11, 11, 'Armistice Day')), 1919: ((3, 25, 'Homecoming Day for 27th Division'), (5, 6, 'Parade Day for 77th Division'), (9, 10, 'Return of General Pershing')), 1923: ((8, 3, 'Death of President Warren G. Harding'), (8, 10, 'Funeral of President Warren G. Harding')), 1927: (6, 13, 'Parade for Colonel Charles Lindbergh'), 1929: ((11, 1, 'Catch Up Day'), (11, 29, 'Catch Up Day')), 1933: ((3, 6, 'Special Bank Holiday'), (3, 7, 'Special Bank Holiday'), (3, 8, 'Special Bank Holiday'), (3, 9, 'Special Bank Holiday'), (3, 10, 'Special Bank Holiday'), (3, 13, 'Special Bank Holiday'), (3, 14, 'Special Bank Holiday')), 1945: ((8, 15, 'V-J Day (WWII)'), (8, 16, 'V-J Day (WWII)'), (12, 24, 'Christmas Eve')), 1954: (12, 24, 'Christmas Eve'), 1956: (12, 24, 'Christmas Eve'), 1958: (12, 26, 'Day after Christmas'), 1961: (5, 29, 'Day before Decoration Day'), 1963: (11, 25, 'Funeral of President John F. Kennedy'), 1965: (12, 24, 'Christmas Eve'), 1968: ((4, 9, 'Day of Mourning for Martin Luther King Jr.'), (7, 5, 'Day after Independence Day')), 1969: ((2, 10, 'Heavy Snow'), (3, 31, 'Funeral of President Dwight D. Eisenhower'), (7, 21, 'National Participation in Lunar Exploration')), 1972: (12, 28, 'Funeral for President Harry S. Truman'), 1973: (1, 25, 'Funeral for President Lyndon B. Johnson'), 1977: (7, 14, 'Blackout in New York City'), 1985: (9, 27, 'Hurricane Gloria'), 1994: (4, 27, 'Funeral for President Richard M. Nixon'), 2001: ((9, 11, 'Closed for Sept 11, 2001 Attacks'), (9, 12, 'Closed for Sept 11, 2001 Attacks'), (9, 13, 'Closed for Sept 11, 2001 Attacks'), (9, 14, 'Closed for Sept 11, 2001 Attacks')), 2004: (6, 11, 'Day of Mourning for President Ronald W. Reagan'), 2007: (1, 2, 'Day of Mourning for President Gerald R. Ford'), 2012: ((10, 29, 'Hurricane Sandy'), (10, 30, 'Hurricane Sandy')), 2018: (12, 5, 'Day of Mourning for President George H.W. Bush')}