Canada's main stock index fell to a three-week low on Wednesday as energy stocks again led a broad retreat on the back of sliding oil prices, pushing the market to its sixth straight daily decline after hitting an all-time high.

The Toronto Stock Exchange's S&P/TSX composite index closed down 34.65 points, or 0.22 per cent, at 15,878.48, its lowest close since Oct. 25.

The index has retreated 1.6 per cent since posting a record high of 16,131.79 last week.

The energy group fell 0.5 per cent, with Cenovus Energy Inc (CVE.TO) down nearly two per cent to $12.99, as oil prices fell for a fourth session after the U.S. government reported an unexpected increase in crude and gasoline stockpiles.

U.S. crude prices settled 0.7 per cent lower at US$55.33 a barrel.

Industrials declined 0.7 per cent as railroad stocks lost ground.

Seven of the index's 10 main groups ended lower.

The largest percentage gainer on the TSX was Martinrea International (MG.TO), which rose 11.1 per cent, after the car parts maker posted third-quarter earnings that beat expectations.

The largest decliner was Canopy Growth Corp (WEED.TO), down 7.5 per cent.

Teck Resources Ltd (TECKb.TO), which Reuters reported has held talks with Dominic Barton, the global managing partner of consulting firm McKinsey & Co, about becoming the Canadian miner's next chairman, rose 0.5 per cent to $27.10.

The TSX posted six 52-week highs and nine new lows, while volume was 176.93 million shares.

Canada's biggest securities regulator is seeking a suspension of trading in two alternative trading venues run by Omega Securities Inc for failure to comply with market regulations, it said in an order dated Monday and released late on Tuesday.