It says this followed a $15.4 billion divestment in June.
Meanwhile, Canadian investment in foreign securities slowed to $900 million and focused on bonds.
The agency says non-residents bought $3.6 billion in Canadian bonds in July.
Foreign investors bought Canadian equities for a fourth straight month, adding $1.5 billion to their holdings in July with shares from the energy and gold sectors leading way.
Canadian acquisitions of foreign securities slowed to $900 million in July from $3.7 billion in June, with investments focused on foreign bonds.