'Given start and end minutes, return all the calendar minutes
in that range, inclusive.
Given minutes don\'t need to be calendar minutes.
Parameters
start_minute: pd.Timestamp
The minute representing the start of the desired range.
end_minute: pd.Timestamp
The minute representing the end of the desired range.
Returns
pd.DatetimeIndex
The minutes in the desired range.'

def minutes_in_range(self, start_minute, end_minute):

    start_idx = searchsorted(self._trading_minutes_nanos, start_minute.value)
    end_idx = searchsorted(self._trading_minutes_nanos, end_minute.value)
    if (end_minute.value == self._trading_minutes_nanos[end_idx]):
        end_idx += 1
    return self.all_minutes[start_idx:end_idx]
