(Reuters) - U.S. stocks closed higher for a second straight day on Thursday on mounting optimism that a U.S. debt ceiling deal could be reached within days, with discount retailer Walmart (NYSE:WMT) Inc providing additional support after an upbeat annual sales forecast.
The benchmark S&P 500 index rebounded from early declines on news that top U.S. congressional Republican Kevin McCarthy said a deal to raise or suspend the debt ceiling could potentially be reached in time to hold a House vote next week.
On Wednesday, President Joe Biden and McCarthy reiterated their aim to strike a deal soon to raise the $31.4 trillion federal debt ceiling and agreed to talk as soon as Sunday.
"Today and yesterday it's really been about some easing pressure from the debt ceiling, McCarthy again came out expressing some optimism a deal could be formed by the end of the week, House could vote on a bill the following week," said Anthony Saglimbene, chief market strategist at Ameriprise Financial (NYSE:AMP) in Troy, Michigan.
The Dow Jones Industrial Average rose 115.14 points, or 0.34%, to 33,535.91; the S&P 500 gained 39.28 points, or 0.94%, at 4,198.05; and the Nasdaq Composite added 188.27 points, or 1.51%, at 12,688.84.
Walmart shares gained 1.30% to $151.47 after the retail giant reported better-than-expected first-quarter earnings and boosted its 2023 sales and profit outlook.
The debt ceiling has drawn attention away from uncertainty about the Federal Reserve's stance on interest rates.
Economic data showed the number of Americans filing new claims for jobless benefits fell more than expected last week, suggesting the labor market remains tight, giving the Fed more cushion to continue raising rates.
Recent data has indicated some slowing in the U.S. economy following a string of Fed rate hikes to fight high inflation. But while the market is pricing in a rate cut by the end of the year, comments from Fed officials suggested they are not yet ready to cut or even pause hiking rates soon.
Dallas Federal Reserve Bank President Lorie Logan and Fed Governor Philip Jefferson said on Thursday the economy does not appear to be softening fast enough for the central bank to pause its rate hike cycle.
"If we get a debt ceiling agreement at the end of the week here and remove that macro issue, you still have the Fed meeting in June, now that is probably a live meeting based on what some of the policymakers have been saying this week, so that could be a concern, it could kind of cap some of the momentum in the market," said Saglimbene.
Netflix Inc (NASDAQ:NFLX) surged 9.22% after saying its recently launched ad-supported tier reached nearly 5 million active users per month.
Chipmaker Micron Technology Inc (NASDAQ:MU)'s shares gained 4.08% as it plans to invest up to 500 billion yen ($3.70 billion) in Japan for new chips over the next few years.
Take-Two (NASDAQ:TTWO) Interactive Software Inc jumped 11.69% as it beat estimates for quarterly adjusted sales.
Volume on U.S. exchanges was 10.49 billion shares, compared with the 10.62 billion average for the full session over the last 20 trading days.
Advancing issues outnumbered decliners on the NYSE by a 1.31-to-1 ratio; on Nasdaq, a 1.14-to-1 ratio favored advancers.
The S&P 500 posted 27 new 52-week highs and seven new lows; the Nasdaq Composite recorded 88 new highs and 83 new lows.