aggregatePrice function

Aggregate a time series but keep first and last observation