The Canadian dollar edged higher on Wednesday against its U.S. counterpart but pulled back from a three-and-a-half-month high as oil prices fell sharply and the U.S. Federal Reserve raised interest rates.

The loonie has soared this week after the Bank of Canada signaled higher interest rates ahead.

Investors have moved forward their expectations for when the central bank will begin raising rates, said Hosen Marjaee, senior managing director, Canadian fixed income at Manulife Asset Management.

Chances of a rate hike this year have surged to 87 per cent from less than one-in-four before stronger-than-expected jobs data on Friday.

Canadian household debt as a share of income dipped to 166.9 per cent in the first quarter but remained near record highs, while separate domestic data showed that home prices rose in May.

Canada's central bank, which had long said interest rates are too blunt a tool to tackle the country's housing market, may have finally decided to act and at least limit its role in fuelling a potential bubble with low interest rates.

The U.S. dollar had been pressured by weaker-than-expected economic data but reversed most of its losses against a basket of major currencies after the Fed raised rates and said it was prepared to continue tightening monetary policy.

Crude oil prices slumped to their lowest close in seven months on Wednesday, hit by an unexpected large build in gasoline inventories. U.S. crude oil futures settled US$1.73 lower at US$44.73 a barrel.

At 4 p.m. ET, the Canadian dollar was trading at $1.3234 to the greenback, or 75.56 cents US, up 0.1 per cent.

The currency's weakest level of the session was $1.3271, while it touched its strongest since Feb. 28 at $1.3165.

Canadian government bond prices were higher across the yield curve in sympathy with U.S. Treasuries. The two-year rose four cents to yield 0.887 per cent and the 10-year climbed 51 cents to yield 1.505 per cent.

The gap between the 10-year yield and its U.S. equivalent narrowed by 0.9 of a basis points to a spread of -63.7 basis points, its smallest since Nov. 8, the day of the U.S. election.

Spreads between Canada and the U.S. could narrow further as Canada's economy builds momentum in the first half of the year and as the U.S. economy shows some signs of slowing, Marjaee said. "Our portfolio strategy is to benefit from that."