Added comments around the case where we get historicalPrices as an object and not an array of objects.