(Bloomberg) -- South Korea’s exports slump eased for a second month in May, an early sign that weakness in global demand may finally be starting to moderate.

Shipments adjusted for working-day d5ifferences fell 9.3% from a year earlier, the smallest decline since October, according to data released Thursday by the customs office.

Headline exports dropped 15.2%, less than economists’ expectations for a 16.3% decline, according to the trade ministry. Overall imports fell 14%, resulting in a trade deficit of $2.1 billion, the narrowest in a year.

Korean exports serve as a barometer of international trade as the nation sells items such as chips, displays and refined oil, which straddle supply lines. While the data indicates some recovery in demand for Korean goods, overall exports remain weak amid a surge in chip inventories and China’s lackluster economic expansion. 

The South Korean won rose 0.5% to 1,319.55 per dollar Thursday, helped by the trade data but supported more by improving global risk appetite. The currency still remains about 4% weaker against the greenback this year, making it one of the worst-performing in Asia.

“Things may not be as bad as some expected,” said Ha Keon-hyeong, an economist at Shinhan Securities Co. But in order for this to become a clear upward trend, “the tech sector has to pick up, and there aren’t many signs showing that at the moment,” Ha said.

The economic recovery in China, South Korea’s largest trading partner, weakened in May as manufacturing activity fell to the lowest level since December 2022. Meanwhile, South Korea’s semiconductor inventory surged by the most in seven years in April, underscoring ongoing weak demand for chips.

Shipments to six of Korea’s major trading partners declined in May, plunging the most for goods headed to Central and South America. Exports to China dropped 21%, the smallest drop since October. 

Exports of chips slumped 36% as China and tech companies continue to work through a glut of inventory, and overseas shipments of displays fell 7.4%, the trade ministry said in a separate statement. One bright spot for Korea’s trade is automobiles, with exports surging nearly 50% — the 11th straight month of gains— supported by demand from the US and European Union.

The ongoing contraction in exports is set to weigh on South Korea’s economic growth. The Bank of Korea last week cut its forecast for gross domestic product growth in 2023 to 1.4%, citing lower exports and investments.

--With assistance from Myungshin Cho.

(Updates with more details from the trade ministry)

©2023 Bloomberg L.P.