BEIJING (AP) — Most Asian stock markets gained Friday while Japan edged down following Wall Street’s rally at the end of a turbulent week.

KEEPING SCORE: The Shanghai Composite Index rose 0.4 percent to 2,943.37 while Tokyo’s Nikkei 225 lost 0.1 percent to 20,043.25. Hong Kong’s Hang Seng advanced 0.4 percent to 25,582.53 and Seoul’s Kospi added 0.8 percent to 2,044.18. Sydney’s S&P-ASX 200 gained 1 percent to 5,634.30 and benchmarks in New Zealand, Taiwan and Southeast Asia also rose.

WALL STREET: U.S. stocks staged a last-minute turnaround that put the market on track to end the volatile week with a gain. That followed the market’s best day in 10 years. Health care and technology companies, banks and industrial stocks accounted for much of the gains. The Standard & Poor’s 500 rose 0.9 percent to 2,488.83 after being down 2.8 percent at midday. The Dow Jones Industrial Average gained 1.1 percent to 23,138.82. The Nasdaq composite added 0.4 percent to 6,579.49. The downturn that began in October has intensified this month, erasing all of the market’s 2018 gains and nudging the S&P 500 closer to its worst year since 2008. Stocks are on track for their worst December since 1931.

ANALYST’S QUOTE: Improved U.S. sentiment “provided Asia markets with the intraday relief into the end of the week,” said Jingyi Pan of IG in a report. Still, Pan said, “one would likely flinch to call this a bottom yet,” leaving a “mixed picture as we head into the end of the year.”

CHINA PROFIT DECLINE: Profits at major Chinese industrial companies fell in November for the first time in three years amid an economic slowdown and trade tension with Washington. Government data showed profit for companies in steel, construction materials, oil, chemicals and equipment manufacturing declined 1.8 percent from a year earlier, a reverse from October’s 3.6 percent gain.

ENERGY: Benchmark U.S. crude jumped 98 cents to $45.59 per barrel in electronic trading on the New York Mercantile Exchange. The contract plunged $1.59 on Thursday to close at $44.61. Brent crude, used to price international oils, gained 92 cents to $53.65 per barrel in London. It fell $1.97 the previous session to $52.73.

CURRENCY: The dollar declined to 110.58 yen from Thursday’s 111.01 yen. The euro advanced to $1.1456 from $1.1430.