{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering"},{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics"}],"enrichment":{"capability":"Provides trading calendars for more than 50 security exchanges worldwide, allowing you to query trading sessions, minutes, and schedules with timezone-aware timestamps and holiday handling.","skillfed_tags":["finance","trading","time-series"],"use_cases":["Validate whether a timestamp falls within trading hours before executing a trade or backtest.","Generate a list of all trading days in a date range for a specific exchange to align analysis windows.","Build minute-level trading indices with custom period lengths (e.g., 90-minute bars) for intraday analysis.","Determine the next or previous trading session from a given date for scheduling or reconciliation tasks.","Query exchange schedules including breaks and early closes to understand market microstructure."],"what_it_does":"exchange_calendars is a Python library that bundles pre-configured trading calendars for security exchanges worldwide. It abstracts away the complexity of managing exchange-specific holidays, trading hours, and timezone conversions by providing a unified API to query whether a given date or minute is a trading session, retrieve trading schedules with open/close times and breaks, and generate time indices aligned to exchange sessions.\n\nThe library depends on pandas for data structures, numpy for numerical operations, tzdata for timezone handling, and specialized libraries for lunar calendar calculations (used by exchanges that observe lunar holidays). It exposes calendars through a simple interface: load a calendar by exchange code, then call methods like `is_session()`, `sessions_in_range()`, `session_minutes()`, or `trading_index()` to get the information you need. A command-line tool is also included for quick calendar visualization.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a real problem in quantitative finance and trading systems\u2014managing exchange calendars is tedious and error-prone without it. Install it if you work with multiple exchanges or need reliable session/minute-level time alignment."},"id":"exchange-calendars","links":{"html":"https://skillfed.io/packages/exchange-calendars","md":"https://skillfed.io/packages/exchange-calendars.md","pypi":"https://pypi.org/project/exchange-calendars/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-10","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"exchange_calendars","python_support":"supports_current","summary":"Calendars for securities exchanges"},"popularity":{"monthly_downloads":7230240,"position":1765,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.13.2"}
