mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 09:39:14 +08:00
4865ade9b2
The new TradingCalendar method is called `minute_index_to_session_labels`. It takes a DatetimeIndex of in-order market minutes and returns a DatetimeIndex of the corresponding sessions. The new method is approximately 100x faster than mapping `minute_to_session_label` over a large DatetimeIndex.