Stocks rose on Monday amid optimism around U.S.-China trade talks as Wall Street wrapped up a volatile third quarter.

The Dow Jones Industrial Average climbed 96.58 points, or 0.4% to close at 26,916.83. The S&P 500 closed 0.5% higher at 2,976.73 while the Nasdaq Composite gained 0.8% to 7,999.34.

Tech was among the best-performing sectors in the S&P 500, advancing 1.1% as Apple shares rose 2.4% on a price-target increase by an analyst at J.P. Morgan. The analyst's new price target implies a more-than 20% increase for the tech giant over the next 12 months.

In a statement over the weekend, a Treasury spokeswoman said the Trump administration "is not contemplating blocking Chinese companies from listing shares on U.S. stock exchanges at this time." The statement, along with better-than-expected economic data out of China, lifted Wall Street sentiment on Monday.

Wall Street ended lower on Friday on reports that the White House is considering limiting U.S. investment into China, including a possible delisting of Chinese companies from U.S. stock exchanges, in a further escalation of the ongoing trade dispute between the world's two largest economies. White House trade advisor Peter Navarro told CNBC those reports were inaccurate.

Chinese state media called the potential restrictions "the latest attempt at decoupling" and warned of "significant repercussions for the Chinese and U.S. economies, as well as their companies, in the future."