In the fourth quarter of 2012, China had a $31.8 billion deficit on its capital and financial account, the State Administration of Foreign Exchange said in a statement on its website, www.safe.gov.cn.

That followed a $51.7 billion deficit in the capital and financial account in the third quarter.

"It seems like the trend from Q2 and Q3 has remained in place and that China has continued to see a capital outflow. It seems that in Q4 there was still a lack of confidence among investors about the outlook for the Chinese economy," said Dariusz Kowalczyk, Asia ex-Japan senior economist and strategist at Credit Agricole CIB in Hong Kong.

"But because a strong current account surplus enabled China to record an overall positive balance of payments after two quarters of declines, that explains why the renminbi appreciated in Q4," he added.

China had a surplus of $221.1 billion on the capital and financial account in 2011.

The swing into a capital account deficit in 2012 was mainly caused by market players' preference towards holding their assets in foreign currency while keeping debt in local currency, the SAFE said.

But recent data has started to show net capital inflows as China's economy recovers, the regulator said.

The CSI300 index .CSI300 of top Shanghai and Shenzhen A-shares has surged some 30 percent since early December.

"The possibility of periodic capital inflows cannot be ruled out if the environment becomes better at home and abroad," it said.