The Canadian stock market ended modestly lower on Wednesday, after trading in negative territory right through the session, weighed down by lower commodity prices and largely sluggish U.S. and European markets.