In the first half of the year, the S&P 500 index reached 31 new all-time highs, the second-highest number this century.