US stock markets traded higher on Wednesday, extending a broad-based rally that has pushed major indices toward record territory.

After an initial dip following the open, buying interest returned to lift the S&P 500 and Nasdaq Composite, continuing the upward momentum from the previous session.

The S&P 500 climbed 0.3% on Tuesday, while the Nasdaq Composite gained 0.5%, reflecting broad strength across sectors.

This performance was underpinned by a combination of favorable macroeconomic data and positive corporate earnings reports, which have bolstered investor sentiment in recent weeks.

The rally marks a continuation of the recent trend, with indices opening higher on Tuesday and extending those gains into Wednesday's trading.

The market's resilience suggests that investors are digesting the latest economic indicators with optimism, focusing on the strength of corporate fundamentals rather than broader macroeconomic uncertainties.