MIAMI -- Right-hander Jarred Cosart has been traded by the Houston Astros to the Miami Marlins in a six-player deal.
The Marlins also acquired infielder-outfielder Kiki Hernandez and outfielder Austin Wates in exchange for third baseman Colin Moran, outfielder Jake Marisnick, right-hander Francis Martes and a 2015 compensatory draft pick.
The Marlins, traditionally sellers at the trade deadline, were in the market to upgrade their rotation after a recent six-game winning streak put them back in the playoff picture.
Cosart is 9-7 with a 4.41 ERA in 20 starts this year but has struggled lately, allowing 21 runs in 21 1-3 innings over four starts in July.
The Astros made the deal Thursday while 22 1/2 games out of first place in the AL West.