Market calendars to use with pandas for trading applications.
copied from cf-staging / pandas-market-calendarsThe Pandas package is widely used in finance and specifically for time series analysis. It includes excellent functionality for generating sequences of dates and capabilities for custom holiday calendars, but as an explicit design choice it does not include the actual holiday calendars for specific exchanges or OTC markets.
The pandasmarketcalendars package looks to fill that role with the holiday, late open and early close calendars for specific exchanges and OTC conventions. pandasmarketcalendars also adds several functions to manipulate the market calendars and includes a date_range function to create a pandas DatetimeIndex including only the datetimes when the markets are open.
This package is a fork of the Zipline package from Quantopian and extracts just the relevant parts. All credit for their excellent work to Quantopian.