A day of mostly listless trading on Wall Street ended Wednesday with modest losses as the stock market gave back some of its gains from the day before.
Technology stocks accounted for most of the selling, which lost some of its momentum toward the end of the day. Energy companies also fell. Financial sector stocks declined as bond yields, which are used to set interest rates on loans, headed lower.
The modest losses came as investors weighed mixed data on the economy and the latest batch of corporate earnings reports.
A move on Tuesday by the House of Representatives to show support for the pro-democracy protests in Hong Kong appeared to dim some investor optimism about the prospects for progress in the latest trade talks between the United States and China.
‘‘We’re in the height of earnings season and the results that we got last night, as well as this morning, I would characterize as better-than-feared,’’ said Cayman Wills, global head of equities at J.P. Morgan Private Bank. ‘‘On the other side of the pendulum, you have this development on US-China trade relations and the pro-democracy position that Congress took skews slightly negative.’’
The S&P 500 index lost 5.99 points, or 0.2 percent, to 2,989.69. The Dow Jones industrial average dropped 22.82 points, or 0.1 percent, to 27,001.98. The Nasdaq fell 24.52 points, or 0.3 percent, to 8,124.18. The Russell 2000 index of smaller stocks eked out a tiny gain, adding 1.76 points, or 0.1 percent, at 1,525.06.
Advancers outweighed decliners on the New York Stock Exchange. The benchmark S&P 500 index remains 1.2 percent below its all-time high, set in July.
Stocks got off to a downbeat start Wednesday as investors sized up a mixed batch of economic data and company earnings reports.
The Commerce Department said US retail sales fell in September by the largest amount in seven months. That stoked worries that consumers are pulling back on spending.
A slowdown in retail sales is concerning because consumer spending is a key growth driver for the US economy, which has slowed this year as the costly trade war has escalated.
On Friday, the United States agreed to suspend a planned hike in tariffs on $250 billion of Chinese goods that had been set to kick in Tuesday. Beijing, meanwhile, agreed to buy $40 billion to $50 billion in US farm products.
While both sides still have many issues to work out, the conciliatory steps announced on Friday suggested the trade talks were making some progress. The three bills passed in the House on Tuesday in support of the pro-democracy protests in Hong Kong gave investors a new reason to be less optimistic.
Investors are worried the action by the House could blunt the recent positive momentum in the trade negotiation, Wills said. ‘‘It might take it a step back.’’
Stocks are on track to notch gains this week, in part because investors have mostly set aside concerns over the trade negotiations in favor of focusing on corporate earnings for the third quarter. Stocks rallied on Tuesday following surprisingly good earnings and hopeful forecasts.
Even so, company earnings for the third quarter are expected to be down by nearly 5 percent, according to FactSet.
Traders bid up shares in United Airlines 2.1 percent and Bank of America 1.5 percent Wednesday after the companies turned in third-quarter results that topped Wall Street’s forecasts.
A mixed third-quarter report card weighed on insurer Progressive, which dropped 2.8 percent.
Microsoft and Adobe were among the big decliners in the technology sector. Microsoft slid 0.8 percent, and Adobe slid 2.4 percent.
Companies that rely on consumer spending led the gainers. Retailer Advance Auto Parts picked up 1.9 percent.
Home builders marched broadly higher after an industry survey showed builders’ confidence increased to the highest level since February 2018. Beazer Homes USA gained 3.6 percent.
General Motors rose 1.1 percent after the auto company and the United Auto Workers union reached a tentative contract deal.
A potential settlement in the opioid epidemic involving some of the nation’s largest drug distributors helped lift their shares. McKesson rose 4.8 percent, AmerisourceBergen climbed 3.4 percent, and Cardinal Health added 2.4 percent.
Bond prices rose. The yield on the 10-year Treasury fell to 1.75 percent from 1.77 percent late Tuesday.
Benchmark crude oil rose 55 cents to settle at $53.36 a barrel. Brent crude, the international standard, gained 68 cents to $59.42.