Home / Other tools

pandas_market_calendars

Other tools1,015 GitHub starsPython⏱ Last commit 2 days ago

Exchange market calendars for pandas trading applications

What it is

A Python package providing holiday, late open, early close, and intraday break calendars for over 50 global equity and futures exchanges, designed to integrate with pandas for trading applications. Its date_range function generates a DatetimeIndex limited to datetimes when markets are open, and it includes product-specific calendars for futures exchanges with varying hours, breaks, and holidays. Traders and quants doing time series analysis in pandas will find it useful, since pandas itself deliberately excludes exchange holiday calendars by design. Calendars ship as package code rather than being fetched from a server, so users must install a newer release to receive corrected or updated market hours.

At a glance

RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.

Best forDevelopers
Used forData analysis, Backtesting
MarketsMulti-market
StackPython
Learning curveEasy to start
Practical valueHigh practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceLast commit 2 days ago

Popularity snapshots

Daily snapshots of GitHub stars. Star changes are not a count of users or usage. Snapshots since 2026-11-02 (up to 30 days): first-to-last change +10 , latest 1,015. Gaps mean no snapshot was taken that day.

In the author's words

Exchange calendars to use with pandas for trading applications.

Open on GitHub ↗This week's trending toolsChinese page

Other trading calendar tools

pandas_market_calendars provides market schedules and pandas date indexes; exchange_calendars queries sessions, trading minutes and breaks. Calendar mirroring links the projects, so check coverage and APIs. Indicator libraries and backtesting frameworks are not direct calendar substitutes.