Comments (3)
Hi @MBounouar, yes this change is intentional.
Here the minute is being passed as UTC midnight on the day of the calendar's first session, although the first minute covered by the calendar will be that session's first minute, (14:30 UTC). The exception's raised as the minute passed is earlier than the first minute covered by the calendar.
See the sessions and minutes tutorials for all things sessions and minutes in v4.
Cheers
from exchange_calendars.
Hi @maread99
If it was intentional, I will close the issue.
Though, I still would have expected that direction="next"
(which is the default) wouldn't be so unforgiving in this particular case, and kept the old behavior.
Cheers,
from exchange_calendars.
Without being strict a user could, without realizing it, pass any minute before the calendar's first minute and wrongly, but reasonably, assume the calendar's first session is the corresponding session.
It makes no difference if the minute passed is 'just' before the first minute - without knowledge of the prior session's open/close it's not possible to know which session to assign a minute to (for example, for a 24h calendar the minute prior to the open should be assigned to the prior session).
from exchange_calendars.
Related Issues (20)
- XASX missing 2 days HOT 2
- FutureWarning: 'T' is deprecated and will be removed in a future version HOT 1
- Consider supporting polars HOT 6
- ecal: AttributeError: 'datetime.timezone' object has no attribute 'key' HOT 1
- XCSE - Prayers day is now not a holiday in Denmark HOT 1
- XKRX - 2024 Election Day missing in calendar HOT 1
- XASX - 2024, early closes missing on Christmas Eve and New Year's Eve HOT 1
- ValueError: assignment destination is read-only in exchange_calendars/exchange_calendar.py", line 2907 when running with Pandas COW HOT 1
- Add EEX holiday calendar for futures HOT 1
- XDUB missing early may bank holiday post-2021
- ModuleNotFoundError: No module named 'exchange_calendars' HOT 1
- XNSE and XBOM special holiday 2024-01-22 HOT 2
- XNSE and XBOM holiday 2024-05-20 HOT 2
- Add calendar for XNSE HOT 1
- Getting AttributeError: 'NoneType' object has no attribute 'total_seconds' requesting calendar for XNYS HOT 1
- PR Labeler workflow failing
- NYSE future schedule ends at 2025-07-18
- First session is alway 20 years in the past HOT 5
- AttributeError: 'datetime.timezone' object has no attribute 'key' in `calendar_helpers.py`
- Should exchange codes should be "Operating MICs"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exchange_calendars.