TORONTO, June 16 (Reuters) - Canada's main stock index rose on Friday as energy shares rebounded with oil prices, offsetting losses for consumer staple companies on news that internet retailer Amazon.com Inc AMZN.O was buying Whole Foods Market Inc WFM.O .
The Toronto Stock Exchange's S&P/TSX composite index .GSPTSE unofficially closed up 31.97 points, or 0.21 percent, at 15,192.39, after four straight days of losses. Six of the index's 10 main groups ended higher.