The Miami Marlins have acquired Jarred Cosart from the Houston Astros.

Miami will also receive shortstop Enrique Hernandez and outfielder Jake Marisnick in the deal.

Houston gets top prospect Colin Moran as well as a compensation pick in next June's First-Year Player Draft.