$npx skillfedfor your agent

pandas_market_calendars

Market and exchange trading calendars for pandas

Worth itPyPI Software DevelopmentReleased May 20262.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pandas_market_calendars-5.4.0-py3-none-any.whl
v5.4.0 · released 2026-05-27 · Python >=3.10 · 2 runtime deps: exchange-calendars, pandas

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a concrete problem for quantitative finance workflows. It is production-stable (Development Status 5), widely used (top 5000 PyPI), and permissively licensed. Install it if you need to work with market hours, holidays, or trading schedules in pandas.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; minimum version changed in v5.0 from 3.9.
  • Low install friction with only two runtime dependencies (pandas and exchange-calendars).
  • Active maintenance with a release 79 days ago and continuous repository activity; supports current Python versions (3.10–3.14).

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions.

last release 2026-05-27 (79 days) · last repo commit 2026-07-12 · 990 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,099,085 downloads/mo, #3,297 on PyPI

Verify before relying

pip install pandas_market_calendars

import pandas_market_calendars as mcal

nyse = mcal.get_calendar('NYSE')
schedule = nyse.schedule(start_date='2012-07-01', end_date='2012-07-10')
dates = mcal.date_range(schedule, frequency='1D')
  • Accuracy and timeliness of calendar data for all 50+ exchanges—whether updates keep pace with real-world market changes
  • Performance characteristics when working with large date ranges or many calendars simultaneously
Same gist for agents: .md · .json

What it is and what it does

pandas_market_calendars fills a gap in pandas by providing pre-built holiday, trading hours, and market break calendars for specific exchanges and OTC markets. Rather than fetching live data at runtime, calendars are shipped as package code and updated via new releases. The package wraps exchange-calendars to mirror its calendar definitions and adds utility functions to work with market schedules—most notably a date_range function that generates pandas DatetimeIndex objects containing only times when markets are open, accounting for holidays, early closes, and intraday breaks (such as lunch breaks in Asian markets or processing breaks in 24-hour futures markets).

Typical usage involves loading a calendar by exchange name (e.g., NYSE), querying its schedule for a date range to see market_open and market_close times, and then generating aligned datetime sequences for backtesting, data alignment, or trading logic. The package is designed for quantitative finance workflows where precise market hours and holiday handling are essential.

Use it for

  • Backtest trading strategies by generating datetime sequences aligned only to market hours for a specific exchange
  • Align time series data to market open/close times when building multi-asset portfolios across different exchanges
  • Identify market holidays and early closes programmatically to avoid scheduling trades or data pulls on non-trading days
  • Handle intraday breaks in Asian and futures markets when calculating trading durations or generating periodic resampling
  • Build global trading calendars by combining schedules from multiple exchanges to coordinate cross-market strategies

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, low install friction, and solves a concrete problem for quantitative finance workflows. It is production-stable (Development Status 5), widely used (top 5000 PyPI), and permissively licensed. Install it if you need to work with market hours, holidays, or trading schedules in pandas.

Install

pandas-market-calendars on PyPI

Before you install

Low install friction with only two runtime dependencies (pandas and exchange-calendars). Active maintenance with a release 79 days ago and continuous repository activity; supports current Python versions (3.10–3.14).

Requires Python 3.10 or later; minimum version changed in v5.0 from 3.9.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions.

Quickstart

pip install pandas_market_calendars

import pandas_market_calendars as mcal

nyse = mcal.get_calendar('NYSE')
schedule = nyse.schedule(start_date='2012-07-01', end_date='2012-07-10')
dates = mcal.date_range(schedule, frequency='1D')

Verify before relying

  • Accuracy and timeliness of calendar data for all 50+ exchanges—whether updates keep pace with real-world market changes
  • Performance characteristics when working with large date ranges or many calendars simultaneously

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
exchange-calendarspandas
MaintenanceActively maintained 79 days since the last release
Last repo commit
First released
Downloads2,099,085 / month, #3,297 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development

Evidence: pandas_market_calendars-5.4.0-py3-none-any.whl

Tags

Capabilities
trading calendar pandasmarket hours exchange calendarbusiness day trading scheduleglobal exchange holidaysfutures market calendarOTC market hoursdate range market open close
Topics
trading-financetime-seriesmarket-data
PyPI keywords
tradingexchangesmarketsOTCdatetimeholidaybusiness days

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “trading calendar pandas”

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also exchange_calendars · workalendar · finlab · efinance · tradingview-screener · businesstimedelta · chinese-calendar · workadays · alpaca-trade-api · tradingeconomics