Energy exports to the United States increased as Canada’s trade surplus with the world expanded to $5.8 billion in June from $5.2 billion in May.

Statistics Canada said companies exported merchandise worth $43.2 billion in June, up 3.1% from the previous month. Prices increased 4.5% while volumes declined 1.4%.

Overall, export prices have been on the rise for the past eight months, while volumes have been trending downward.

Imports rose 2% to $37.4 billion, the third straight monthly increase.

Prices rose 2.6%, while volumes declined 0.6.

Exports to the United States rose 5.3% to $32.8 billion.

Imports also increased, but to a lesser extent, yielding a trade surplus with the United States of $9.6 billion, up from $8.1 billion.

The trade deficit with countries other than the United States expanded to $3.9 billion from $2.9 billion in May, largely due to increased imports of crude petroleum.

Meanwhile, the U.S. trade deficit unexpectedly fell in June as exports advanced to an all-time high, offsetting another big surge in oil imports.

The U.S. Commerce Department reported today the trade imbalance dropped to US$56.8 billion in June, down by 4.1% from a revised May deficit of $59.2 billion.

It’s the smallest deficit in three months and much better than the $61.5 billion deficit Wall Street had been expecting.

The report shows that exports of goods and services rose to a record of $164.4 billion, helped by the dollar’s declines earlier in the year, which have made U.S. goods cheaper on overseas markets.

Imports also rose to a record, but the increase was driven by surging oil prices.