The Chinese national flag (2nd right) flies alongside the flag of the Hong Kong Special Administrative Region (right) outside the Exchange Square complex, which houses the Hong Kong Stock Exchange, in Hong Kong, China, on May 29, 2020. (PHOTO/BLOOMBERG)

Hong Kong shares rose on Wednesday, with tech firms leading gains.

Chinese mainland investors net bought a combined HK$2 billion worth of Hong Kong stocks via the trading links with Shenzhen and Shanghai

At the close of trade, the Hang Seng index was up 231.73 points, or 0.88 percent, at 26,426.55. The Hang Seng China Enterprises index rose 1.06 percent to 9,419.25.

The Hang Seng Tech index rose 2.43 percent and the IT sector rose 1.25 percent. Consumer discretionary firms also rose, lifting an index tracking the sector 2.55 percent.

Hong Kong stocks advanced after technology firms rebounded, led by Tencent Holdings Ltd, as investors continued to weigh growth prospects against regulatory risks.

ALSO READ: EV maker Li Auto seeks US$1.9b in Hong Kong listing

A Bloomberg gauge tracking Macao’s casino operators fell as much as 5.5 percent, set for its worst day since September last year, after Macao required COVID-19 test for people departing the city after new cases were identified.

Wynn Macau Ltd fell as much as 9.4 percent, while SJM Holdings Ltd lost 7.2 percent. Galaxy Entertainment Group Ltd fell 6.3 percent.

Chinese mainland investors net bought a combined HK$2 billion worth of Hong Kong stocks via the trading links with Shenzhen and Shanghai on Wednesday, set for the most since July 9, Bloomberg data shows.