initial port of bucketing code to the new endpoint for fetching numeric data