Traders work on the floor at the New York Stock Exchange in New York, Wednesday, Jan. 8, 2020. Credit: Seth Wenig | AP

NEW YORK — Markets are stabilizing in early trading on Wall Street after being roiled overnight following an Iranian missile attack on U.S. bases in Iraq. The strike was in retaliation for the killing of an Iranian general last week.

Stocks opened mostly higher and oil prices retreated after spiking overnight on the latest escalation of tensions between the U.S and Iran. The S&P 500 rose 7 points, or 0.2 percent, to 3,241. The Dow Jones Industrial Average rose 7 points, or 0.1 percent, to 28,590. The Nasdaq added 22 points, or 0.2 percent, to 9,090. The yield on the 10-year Treasury held steady at 1.82 percent.

Oil prices rose and global stock markets fell Wednesday after Iran fired missiles at U.S. bases in Iraq in retaliation for the killing of an Iranian general.

Brent crude futures, the benchmark for international oils, spiked more than $3 per barrel in London before retreating.

Stock markets in London and Frankfurt opened lower and Tokyo’s benchmark fell nearly 2 percent before recovering some of its losses. Hong Kong and Shanghai also retreated.

“Investors appear to be pricing for an all-out war,” said Jingyi Pan of IG in a report.

The Pentagon said Iran fired more than a dozen missiles at bases in Iraq used by U.S. troops. President Donald Trump tweeted “All is well!” and that casualty and damage assessments were ongoing, adding “So far, so good!”

Iran’s foreign minister described the missile firings as “proportionate measures in self-defense.”

Financial markets have been on edge about possible U.S.-Iranian conflict and disruption of oil supplies since last week’s killing of Gen. Qassem Soleimani by a U.S. drone in Baghdad.

Brent crude was up 78 cents at $69.05. At the start of trading, it spiked $3.48 to $71.75 before retreating.

Benchmark U.S. crude was up 55 cents to $63.25 per barrel in electronic trading on the New York Mercantile Exchange. It earlier jumped $2.95 to $65.65 before settling back.

Higher prices for imported oil could push up inflation in economies including China and India, making it harder for central banks to support growth by easing monetary policy, said Rajiv Biswas of IHS Markit in a report.

In early trading, London’s FTSE 100 lost 0.6 percent to 7,525.48 and Frankfurt’s DAX shed 0.7 percent to 13,134.26. France’s CAC 40 lost 0.5 percent to 5,98049.

On Wall Street, the future for the benchmark Standard & Poor’s 500 index lost 0.2 percent and that for the Dow Jones Industrial Average was off 0.4 percent.

On Tuesday, the S&P 500 index lost 0.3 percent in trading that closed before the Iranian attack. The Dow shed 0.4 percent and the Nasdaq composite slipped less than 0.1 percent.

In Asia, Tokyo’s Nikkei 225 index fell 1.6 percent to 23,204.76 and Hong Kong’s Hang Seng fell 0.9 percent to 28,087.92.

The Shanghai Composite Index lost 1.2 percent to 3,066.89 and South Korea’s Kospi retreated 1.1 percent to 2,151.31.

Sydney’s S&P-ASX 200 shed 0.1 percent to 6,817.60 and India’s Sensex shed 0.2 percent to 40,770.06.

Taiwan, New Zealand and Southeast Asian markets also retreated.

Before the latest attack, the rush by investors into safe assets had been abating.

Gold’s momentum eased Tuesday after touching its highest price in nearly seven years.

In currency markets, the dollar was little-changed at 108.43 yen. The euro declined to $1.1139 from $1.1152.