NEW YORK — Stocks that moved substantially or traded heavily Wednesday on the New York Stock Exchange and the Nasdaq Stock Market:

NYSE

The Bank of New York Mellon Corp., up 57 cents at $30.92

The bank said that its net income rose 78 percent in the second quarter as market conditions improved and it collected more fees for managing investments.

United Rentals Inc., up $5.39 at $56.37

The equipment rental company said that it returned to a second-quarter profit as it benefited from the rebounding construction market and a year-ago acquisition.

St. Jude Medical Inc., up $2.54 at $51

The medical device maker reported better-than-expected second-quarter earnings on higher sales of its heart-device implants.

American Express Co., down $1.47 at $76.80

Shares of the credit card company fell after a published report suggesting the European Union will try to cap lucrative card processing fees.

Nasdaq

Mattel Inc., down $3.17 at $43.16

The toy maker said its second-quarter net income fell 24 percent, hurt by a continued slide in Barbie sales and a $14 million write-down of its Polly Pocket line.

Yahoo Inc., up $2.78 at $29.66

The Internet company's second-quarter earnings grew, as it continues to face competition from rivals Google Inc. and Facebook Inc.

Zagg Inc., down $1 at $4.86

The mobile device accessory maker disappointed investors after announcing that sales will be lower than Wall Street analysts expected.

Energy XXI Ltd., up $3.54 at $27.93

The independent oil and natural gas exploration and production company announced a strong increase in proved oil reserves.