Skip to main content

map_schedule

Function map_schedule 

Source
pub fn map_schedule(
    symbol: &str,
    resp: &ScheduleResponse,
    from: UnixNanos,
    to: UnixNanos,
    now: Instant,
) -> Schedule
Expand description

A Schedule answer -> core schedule for the range from..to.

Sessions of the closed type are dropped, and so are sessions that do not overlap the range. symbol is stored as the schedule’s exchange field, because Finam schedules are per instrument.