The S&P 500 and Nasdaq ended the session with losses for the third day in a row, while the Dow Jones Industrial Average reached a record. Inc.'s (AMZN) decision to purchase Whole Foods Market Inc. (WFM) set off declines among retail and grocery stocks earlier in the day. Oil held onto modest gains even after another weekly rise in domestic production. Active rigs drilling for oil climbed by six in the past week, its 22nd increase in a row. Kroger Co. (KR) was caught up in a selloff in retail and supermarket names to end the week. The grocer was already under pressure after JPMorgan cut its rating to NEUTRAL from OVERWEIGHT and reduced its price target. Finisar Corp. (FNSR) surged on high hopes it will deliver tens of millions of 3D sensors to Apple Inc. (AAPL) in coming months. Piper Jaffray said such sales would provide Finisar with millions in high-margin sales in its October and January quarters.

If you liked this article you might like

Irma and Harvey Busted Algos; Probably Done Deals Under Trump: Best of Cramer

Walmart Will Start Offering Meal Kits on Its Website by December

Google or Amazon Should Acquire Toys "R" Us -- Bankruptcy Lawyer Says

Cramer: Food Stocks Are Going Hungry