This followed a gain on Tuesday that saw the S&P 500 top 5,500 for the first time, as markets continue to benefit from healthy corporate earnings data and the tailwind of an expected rate cut later this year.