WIP getAggregates.
Drafted aggregateSecond endpoint.