Stock Market Today: Stocks Retreat After Amazon Revenue Miss

The major indexes all logged solid July gains, though, with the S&P 500 bringing its monthly win streak to six.