Asian shares were higher on Tuesday, recovering from some early losses as regional markets tracked a late rally on Wall Street led by technology shares.

Japan's benchmark Nikkei 225 added 0.5% to finish at 22,549.05. Hong Kong's Hang Seng index jumped nearly 1.0% to 24,748.97 and South Korea's Kospi climbed 0.6% to 2,138.84. Australia's S&P/ASX 200 inched up 0.2% to 5,954.40, while the Shanghai Composite gained 0.2 to 2,970.92.

Shares rose in Singapore and Taiwan but fell in Jakarta.

A woman wearing a face mask walks past a bank's electronic board showing the Hong Kong share index at Hong Kong Stock Exchange Tuesday, June 23, 2020. Asian shares were mostly higher on Tuesday, tracking a late rally on Wall Street led by technology shares. (AP PhotoVincent Yu)

A woman wearing a face mask walks past a bank's electronic board showing the Hong Kong share index at Hong Kong Stock Exchange Tuesday, June 23, 2020. Asian shares were mostly higher on Tuesday, tracking a late rally on Wall Street led by technology shares. (AP PhotoVincent Yu)

“It’s back to the regular order of business, which is trying to figure out why stocks are so high!" Stephen Innes of AxiCorp said in a commentary. “You can add the resurgence of COVID-19 to the laundry list of things the market doesn’t care about, so it seems.”

On Wall Street, the S&P 500 rose 0.6% to 3,117.86 after initially sliding 0.6% following weakness in overseas markets as the global tally of coronavirus infections surpassed 9 million. Investors are weighing the risks that rising coronavirus cases could pose to hopes for an economic recovery. That's led traders to bid up stocks in technology companies that offer services online, a thriving conduit of commerce through the outbreak.

“In an environment where the WHO had only recently announced on Sunday a record increase in global Covid-19 cases, sentiment can certainly still turn very promptly with the flick of the switch," Jingyi Pan, a market strategist with IG in Singapore said in a report.

People wearing face mask walk past a bank's electronic board showing the Hong Kong share index at Hong Kong Stock Exchange Tuesday, June 23, 2020. Asian shares were mostly higher on Tuesday, tracking a late rally on Wall Street led by technology shares. (AP PhotoVincent Yu)

People wearing face mask walk past a bank's electronic board showing the Hong Kong share index at Hong Kong Stock Exchange Tuesday, June 23, 2020. Asian shares were mostly higher on Tuesday, tracking a late rally on Wall Street led by technology shares. (AP PhotoVincent Yu)

Overnight, the head of the World Health Organization, Tedros Adhanom Ghebreyesus, warned that the coronavirus pandemic “is still accelerating” around the globe. He noted that the most recent 1 million cases of the virus were reported in just the last eight days.

Asian markets initially opened lower, spooked by reported comments by White House trade adviser Peter Navarro suggesting the U.S. trade deal with China was in trouble.

However, Navarro said his comments were taken out of context, and President Donald Trump tweeted that the agreement with China, the basis for a truce in a tariff war over technology and other problems, is still on. Trump tweeted: “The China Trade Deal is fully intact. Hopefully they will continue to live up to the terms of the Agreement!”

A man wearing a face mask walks past a bank's electronic board showing the Hong Kong share index at Hong Kong Stock Exchange Tuesday, June 23, 2020. Asian shares were mostly higher on Tuesday, tracking a late rally on Wall Street led by technology shares. (AP PhotoVincent Yu)

A man wearing a face mask walks past a bank's electronic board showing the Hong Kong share index at Hong Kong Stock Exchange Tuesday, June 23, 2020. Asian shares were mostly higher on Tuesday, tracking a late rally on Wall Street led by technology shares. (AP PhotoVincent Yu)

Investors are favoring retailers and other companies that are poised to do well now that more businesses have been given the go-ahead to reopen. But traders are also continuing to hedge their bets by snapping up traditionally less risky assets, such as government bonds and gold, which also rose. Bond yields were mixed.

The Dow Jones Industrial Average picked up 0.6%, to 26,024.96 after earlier sliding 203 points. The Nasdaq composite, which is heavily weighted with technology stocks, climbed 1.1%, to 10,056.47, extending its winning streak to a seventh day.

Small company stocks, which have lagged the broader market’s rebound that began in April, also notched solid gains, with the Russell 2000 index adding 1.1%, to 1,433.53.

While recent U.S. economic data have shown improvement as businesses reopened, it may take years for the economy to fully recover. In contrast, it took just a few months for the stock market to rally back to within 9% of its record.

Investors will get a broader look at the state of the economy toward the end of this week, when the government issues data on consumer spending, weekly unemployment aid applications and durable goods orders. On Tuesday, the Commerce Department serves up new home sales figures for May.

Benchmark U.S. crude oil was unchanged at $40.46 per barrel in electronic trading on the New York Mercantile Exchange. It rose 71 cents on Monday. Brent crude, the international standard, fell 19 cents to $42.89 per barrel.

The dollar rose to 107.17 Japanese yen from 106.90 yen late Monday. The euro was trading at $1.1268, up from $1.1262.

AP Business Writers Alex Veiga and Damian J. Troise contributed.