Function map_bar
pub fn map_bar(
instrument: &InstrumentId,
tf: Timeframe,
b: &Bar,
now: Instant,
) -> CandleExpand description
Bar -> core candle. Absent prices and volume become 0. close_ts is computed from the open time
and the timeframe (month and longer frames follow the calendar), because the bar carries only
the open time.