Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ExchangeCalendars and TradingSchedules #1138
This PR adds two new base classes: ExchangeCalendar and TradingSchedule.
An ExchangeCalendar is an object that manages timing information for a given asset exchange. It can be queried to find out if an exchange is currently trading, or to get more general information about the trading on the exchange.
A TradingSchedule is an object that manages timing information for a TradingAlgorithm. It tells the algorithm, via the clock, when to execute.
This PR contains ExchangeCalendars for some exchanges, including NYSE, and an implementation of TradingSchedule that wraps an ExchangeCalendar for backwards compatibility.