US stock indexes closed with mostly modest losses Tuesday as the market gave up some of its solid gains from the past two weeks.
Banks and technology stocks accounted for most of the decline. The Nasdaq eked out a tiny gain that was good enough to nudge it to another record high.
The selling, which lost some of its momentum in the final hour of trading, came as investors weighed the impact of the virus outbreak in China on Apple and other major companies.
The tech giant said revenue will fall short of previous forecasts in the fiscal second quarter because production has been curtailed and consumer demand for iPhones has slowed in China. Apple’s stores there are either closed or operating on reduced hours.
The iPhone maker is among the most notable companies to warn investors that the virus will hurt its financial performance. Medical device maker Medtronic also warned Tuesday that the virus outbreak will impact its quarterly results.
“The longer this goes on, the greater the focus is going to be on how much is this going to impact companies like Apple, which is considered not only a bellwether in tech, but a bellwether for the market overall,” said Randy Frederick, vice president of trading & derivatives at Charles Schwab.
The S&P 500 index fell 9.87 points, or 0.3 percent, to 3,370.29. The benchmark index remains just below its all-time high set on Friday.
The Dow Jones industrial average slid 165.89 points, or 0.6 percent, to 29,232.19. It had been down as many as 281 points. The Nasdaq recovered from an early slide, inching up 1.57 points, or less than 0.1 percent, to 9,732.74.
The Russell 2000 index of smaller company stocks fell 4.06 points, or 0.2 percent, to 1,683.52.
European and Asian markets declined. Bond prices rose. The yield on the 10-year Treasury fell to 1.56 percent from 1.58 percent late Friday.
Stocks opened lower Tuesday as U.S. markets reopened following the Monday’s President’s Day holiday.
As in recent weeks, traders reacted to the latest developments in the viral outbreak that began in China and has since infected more than 73,000 people. Most of of the cases and deaths remain centered in China.
Businesses worldwide are increasingly caught in the economic fallout from the outbreak. The Beijing auto show, the industry’s biggest global event of the year, is being postponed indefinitely from its April date.
Apple and Medtronic are only the latest notable examples of companies that have warned investors about the economic impact of the outbreak on their financial performance.
Technology and health care companies have been the most vocal about mentioning the new coronavirus in their earnings conference calls, according to FactSet.
While Apple’s projected revenue miss took Wall Street by surprise, some analysts played down the long-term impact of the iPhone production delay on the company.
In a research note Tuesday, Canaccord Genuity analyst Michael Walkley said that Apple continues to perform strongly across all business lines, including iPhone 11 demand outside of China.
Apple shares fell 1.8 percent, while Medtronic slid 4 percent.
Despite the ongoing uncertainty over the viral outbreak investors have been willing to buy back into the market after a dip.
The S&P 500 has ended higher the past two weeks and is holding onto a 4.5 percent gain this month.
For the most part, investors are betting that the economic fallout from the outbreak will be limited to the first three months of this year, Frederick said. But if companies signal that they expect lingering effects on their business into the second quarter, investors could become less eager to jump back into the market.
‘‘There are just so many people out there that think every dip is a buying opportunity, and so far, they’ve been rewarded,” Frederick said. “We’re going to see that for a while, until we have a really big downturn and people really get hurt by it. We just haven’t had that in a long time.’’
Technology stocks accounted for a big slice of the selling Tuesday. Several chip makers, which rely heavily on China for sales and supplies, fell. Intel dropped 1.7 percent, and Broadcom slid 2.2 percent.
Banks declined. HSBC said it will cut 35,000 jobs and shed $100 billion in assets. Its shares dropped 5.6 percent. Wells Fargo slid 2.5 percent.
Energy stocks also fell. Schlumberger dropped 2.2 percent.
Communication services stocks and utilities held up better than most of the market. T-Mobile US rose 3.5 percent, and Xcel Energy rose 1.3 percent.
Traders continued to assess company earnings reports. Advance Auto Parts climbed 6.2 percent after the auto parts supplier’s results topped Wall Street’s forecasts. Conagra Brands dropped 6.1 percent after the food producer cut its fiscal 2020 profit and revenue forecasts, citing surprisingly weak consumption.
Among S&P 500 companies still to release their earnings, Progressive will report on Wednesday and ViacomCBS will report on Thursday.
Financial services company Franklin Resources jumped 6.9 percent after saying it is buying competitor Legg Mason for $4.5 billion. The deal will create a financial company with a combined $1.5 trillion in assets under management. Legg Mason shares vaulted 24.4 percent.
Benchmark crude oil was unchanged at $52.02 a barrel. Brent crude, the international standard, rose 8 cents to $57.75.