(Updates to close)
By Aby Jose Koilparambil
Oct 18 (Reuters) - Australian shares ended lower for the second straight session on Friday as investors took money off the table after a recent rally and weak economic growth data out of China took a toll on energy stocks.
The S&P/ASX 200 index .AXJO closed 0.5% lower at 6,649.70, but managed to tack on 0.6% for the week. It gained in eight of the previous 10 sessions, with a five-day rally coming to a halt on Thursday.
Trading was thin as investors waited to see if the Brexit deal gets the UK parliament's approval and for further developments on the Sino-U.S. trade talks.
Economic growth in China, Australia's top trade partner, slowed more than expected to its weakest pace in almost three decades in the third quarter, as the bruising trade war with the United States hit factory production. industrial output grew a better-than-expected 5.8% in September, faster than the 17-year-low posted in August. heavyweight Financials index .AXFJ slipped 0.4%, with all the "Big Four" lenders finishing in the red, losing between 0.3% and 0.8%.
The Metals and Mining index .AXMM fared better than the broader market, dropping only 0.1%. Diversified miner Rio Tinto (LON:RIO) RIO.AX closed up 0.8%, mainly on higher copper prices, while BHP Group BHP.AX ended 0.2% lower as iron ore prices continued to fall.
Gold miner St. Barbara Ltd SBM.AX slid about 9% and was the top percentage loser on the benchmark stock index after the company cut production guidance for its flagship Gwalia project. stocks .AXEJ dropped 0.8% as weak growth data from China, the world's largest oil importer, hurt oil prices.
Origin Energy ORG.AX closed down about 2.5% and was the top percentage loser among energy stocks.
All the major sector indexes finished lower, with consumer staples .AXSJ and property stocks .AXRE shedding 1.7% and 0.6%, respectively.
"The pressure on industrial, consumer staples and property trusts stocks was due to domestic issues and that points to investors battening down the hatches ahead of event risks rather than concerns about growth in China," said Michael McCarthy, chief market strategist at CMC Markets.
"Given the strong start to the week, the reversal we saw yesterday in the region continued to today's trading."
Digital payments platform Afterpay Touch Group Ltd APT.AX declined 7.3%, extending its losses into a third session after brokerage UBS warned the regulatory risks facing the buy-now-pay-later (BNPL) sector.
On Friday, a report said the Reserve Bank of Australia would investigate whether "policy action" is required to target BNPL operators who prevent merchants from passing on the costs to customers.
Across the Tasman Sea, New Zealand's benchmark S&P/NZX 50 index .NZ50 closed down 0.7%, with Meridian Energy Ltd MEL.NZ and dairy firm a2Milk Co ATM.NZ losing more than 2% each.