NEW YORK (AP) — Wall Street applauded a cease-fire in the U.S. trade war with China and opened trading in July with a bang.

The S&P 500 index opened on track for a record high and the Dow Jones Industrial Average gained more than 200 points in early trading Monday. Investors snapped up riskier holdings as the world’s two biggest economies agreed to continue trade talks. The U.S. agreed to hold off on imposing new tariffs on $300 billion in Chinese goods, although existing tariffs on $250 billion of imports remain in place.

Technology stocks and banks led the gains. Traders turned their backs on more defensive holdings, pushing bond and gold prices lower. Utilities lagged the market in another sign that Wall Street had a bigger appetite for risk.

Chipmakers rallied on plans by the U.S. to loosen some sales restrictions to Chinese telecommunications company Huawei. Broadcom rose 5.2% and Nvidia rose 4.7%. Technology giants Apple and Microsoft also helped lead gains.

Banks helped lead the broader market higher. Bank of America rose 2.5% and JPMorgan Chase gained 1.6%. Consumer product makers and other consumer companies also moved higher. Many of those companies, including Nike, have much to gain or lose in the ongoing trade dispute.

Oil prices rose and pushed energy stocks higher as OPEC considers extending production cuts.

Wall Street just finished its best month since January and that helped push the S&P 500 index to a 3.8% second quarter gain. The index is now up more than 17% heading into the second half of 2019.

The gains in the first half of the year were marked by months of volatile trading as investors rode the ups and downs of the trade war. That volatility is unlikely to fade as the U.S. and China head into yet another round of trade talks.

The market had a similar bounce back in December when both sides agreed to more talks and negotiations seemed on track. The key difference this round is the Federal Reserve. The central bank has said it is willing to cut rates in order to shore up the U.S. economy if the trade war crimps growth.

KEEPING SCORE: The S&P 500 index rose 1% as of 10 a.m. Eastern time. The Dow Jones Industrial Average rose 231 points, or 0.9%, to 26,831. The Nasdaq composite rose 1.5%.

OVERSEAS: The truce between the U.S. and China, along with some upbeat economic data, helped push global shares higher.

Japan’s benchmark Nikkei 225 added 2.1% to finish at 21,729.97. Hong Kong’s markets were closed for a holiday. The Shanghai Composite rose 2.2% to 3,044.90.

European markets rose broadly. The unemployment rate in the 19 European Union countries that use the euro fell to its lowest in more than a decade in May.

PRIVATE TRACKS: Railroad operator Genesee & Wyoming rose 8.5% after it agreed to sell itself to Brookfield Infrastructure and GIC.

The company, which owns 120 short line railroads, is being taken private in a deal valued at about $6.37 billion. Most of its operations are in North America.

CRUDE MEASURES: Rising oil prices gave energy companies a jolt as OPEC considers extending a deal to cut production.

Oil prices rose 2.3%. That helped push Exxon shares 1.6% higher and Schlumberger’s stock 2% higher.

The oil cartel faces weakening demand as global economic growth slows. The current deal to cut production is meant to help reduce oversupply and push prices higher.