OTTAWA - Statistics Canada says the country posted a merchandise trade surplus of $684 million in July.