// SPDX-License-Identifier: MIT-0
//! The bar interval a candle-boundary query is asked about.
//!
//! Two families live in one enum because callers select between them at
//! runtime: arithmetic intraday intervals and calendar periods, whose boundaries
//! come from the venue's session closes rather than from any fixed grid.
//! Minute/hour bars are clamped to the enclosing session; second bars are a
//! pure checked offset. See [`super::candle`] for the exact behavior.
use ;
/// Bar resolution / time interval for candle-boundary computations.
///
/// Intraday variants carry a positive interval count. Minute/hour bars returned
/// by [`candle_end`](super::candle_end) are clamped to the enclosing session;
/// second bars are a pure checked offset and do not consult market hours.
/// [`CalendarResolution::Daily`], [`CalendarResolution::Weekly`],
/// and [`CalendarResolution::Monthly`] resolve to canonical session-period
/// boundaries instead of a fixed grid.