exchange-hours 0.2.2

Exchange trading hours, session boundaries, and calendar-aware bar boundaries. UTC in, UTC out.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: MIT-0

//! Venue → hours. The two entry points that turn an [`Exchange`](super::Exchange)
//! into a [`MarketHours`](super::MarketHours).
//!
//! Split by *when* rather than by venue, because the two functions answer
//! different questions: [`current`] gives today's published hours for every
//! venue, [`historical`] gives the hours that were in effect at an instant.
//! Backtests need the second one — a 2015 CME session queried with 2026 hours
//! silently mislabels bars.

mod current;
mod historical;

pub use current::hours_for_exchange;
pub use historical::hours_for_exchange_as_of;