Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a config item for open/close times #211

Open
zfsamzfsam opened this issue Jan 7, 2021 · 1 comment
Open

provide a config item for open/close times #211

zfsamzfsam opened this issue Jan 7, 2021 · 1 comment

Comments

@zfsamzfsam
Copy link

Why are open times one minute late?
https://github.com/quantopian/trading_calendars

Due to its historical use in the Zipline backtesting system, trading_calendars will only indicate a market is open upon the completion of the first minute bar in a day.

Zipline uses minute bars labeled with the end of the bar, e.g. 9:31AM for 9:30-9:31AM.

As an example, on a regular trading day for NYSE:

9:30:00 is treated as closed.
9:30:01 is treated as closed.
9:31:00 is the first time treated as open.
16:00:00 is treated as open
16:00:01 is treated as closed

This may change in the future.

@rsheftel
Copy link
Collaborator

This repo is unmaintained since Quantopian ceased business. Here are 2 forks that may get you what you want:

https://github.com/rsheftel/pandas_market_calendars

https://github.com/gerrymanoim/exchange_calendars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants