Skip to main content

NYSE Calendar

Project description

NYSE Calendar

This is a small library that calculates New York Stock Exchange's holiday.

Example (0) List all NYSE holidays in 2022

from nysecalendar import NYSE_holidays

holidays = list(NYSE_holidays(datetime.date(
        2022, 1, 1), datetime.date(2022, 12, 31)))

Example (1) List all NYSE tradingdays in 2022

from nysecalendar import NYSE_tradingdays

tradingdays = list(NYSE_tradingdays(datetime.date(
        2022, 1, 1), datetime.date(2022, 12, 31)))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NYSECalendar-0.0.4.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

NYSECalendar-0.0.4-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page