pub fn bar_close_from_open(
open: UnixNanos,
spec: &BarSpecification,
) -> UnixNanosExpand description
Compute a bar’s close timestamp from its open timestamp and [BarSpecification].
Weekly/monthly bars are returned unchanged (IB stamps these at the period end).