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

Pre and Post schedule for EUREX #184

Open
Timescaper opened this issue Feb 28, 2022 · 1 comment
Open

Pre and Post schedule for EUREX #184

Timescaper opened this issue Feb 28, 2022 · 1 comment

Comments

@Timescaper
Copy link

Timescaper commented Feb 28, 2022

import pandas_market_calendars as mcal
eurex = mcal.get_calendar('EUREX')
print(eurex.regular_market_times)

Out: _ProtectedDict({'market_open': ((None, datetime.time(9, 0)),), 'market_close': ((None, datetime.time(17, 30)),)})
Eurex has pre and post sessions, pre is start 12:15am UTC and end 8am UTC and post is start 4:30pm and end 9pm UTC. Would you be able to add this in?

@glossner
Copy link
Collaborator

glossner commented Mar 1, 2022

@Timescaper here is an example from exchange_calendar_nyse.py

regular_market_times = {
        "pre": ((None, time(4)),),
        "market_open": ((None, time(10)),
                        ("1985-01-01", time(9, 30))),
        "market_close":((None, time(15)),
                        ("1952-09-29", time(15, 30)),
                        ("1974-01-01", time(16))),
        "post": ((None, time(20)),)
    }

Note that if you send in a date (e.g. 1985-01-01) it means that 9:30 open ended and the opening time is now 10am.

I'd be happy to welcome a pull request with this update. Otherwise, I'll keep the Issue open and get to it after the CME calendar updates.

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

No branches or pull requests

2 participants