forked from quantopian/trading_calendars
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds following methods to `ExchangeCalendar` (and corresponding tests to `ExchangeCalendarTestBase`): - `minute_to_trading_minute` - `minute_to_past_session` - `minute_to_future_session` - `minute_offset` - `minute_offset_by_sessions` - `session offset` Also: - Adds various helper methods and properties to Answers to support new tests. - Adds `longest_run` utility function to `pandas_utils.py`. - Adds following to `errors.py` to handle a requested session/minute falling out-of-bounds: - `RequestedSessionOutOfBounds` - `RequestedMinuteOutOfBounds`
- Loading branch information
Showing
4 changed files
with
911 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.