Traders work on the floor of the New York Stock Exchange (NYSE) on October 13, 2025, in New York City.

Spencer Platt | Getty Images

Stocks rose Wednesday as a slate of stronger-than-anticipated earnings overshadowed worries about growing trade tensions with China.

The Dow Jones Industrial Average climbed 96 points, or 0.2%. The S&P 500 gained 0.5%, while the Nasdaq Composite advanced 0.7%.

Bank of America shares jumped 4% after the company posted third-quarter earnings and revenue that beat analyst expectations, thanks to strong investment banking revenue. Morgan Stanley also posted better-than-expected earnings, sending its shares higher by 5%.

Those reports come after a spate of better-than-expected reports from Goldman Sachs and Wells Fargo, among others, on Tuesday.

“It appears as if the banks have hit the ball out of the park, exceeding both earnings and revenue expectations,” Sam Stovall Chief Investment Strategist at CFRA Research, told CNBC. “That’s an indication that the economy remains strong and, coupled with the likelihood that the Fed will cut rates again at the end of this month, [it] is bolstering investor optimism.”

The period of renewed investor optimism comes after a tumultuous session on Tuesday. The S&P 500 attempted a comeback, but ultimately closed lower after President Donald Trump threatened China with a cooking oil embargo late in the session as retaliation for Beijing not buying U.S. soybeans. On Tuesday, the benchmark was up as much as 0.4% and down as much as 1.5%.

The Nasdaq fell but closed well off the lows. The Dow bucked the trend to rise just over 200 points, although it had fallen as much 1.3% on Tuesday morning.

Tuesday’s news was the latest ramp-up in trade tensions between the U.S. and China. On Monday night, China put new sanctions on five U.S. subsidiaries of South Korean shipbuilder Hanwha Ocean. This followed Trump’s threats last Friday to place an additional 100% tariff on any goods coming from China after Beijing imposed strict export controls on rare earth minerals. Trump’s tariffs could go live on Nov. 1 or sooner, depending on China’s next move, U.S. Trade Representative Jamieson Greer told CNBC Tuesday.

“A lot depends on what the Chinese do,” Greer said. “They are the ones who have chosen to make this major escalation.”