pub fn calculate_duration_segments(
start: Option<Timestamp>,
end: Option<Timestamp>,
duration: Option<Duration>,
) -> Vec<(Timestamp, Duration)>Expand description
Calculate duration segments for IB historical data request.
Splits the range into year, day and second durations ending at calendar-time
offsets from end.