However, the Nasdaq Composite and S&P 500 ended a rocky month of trading with losses. A sharp cooldown in megacap tech names ...