The Diamondbacks have acquired veteran right-hander Mike Leake from the Mariners, the clubs have announced. In return, the Mariners get minor-league infielder Jose Caballero. 

Leake, 31, has been solid this season: 

Mike Leake
ARI • SP • #8
ERA4.34
WHIP1.26
IP137.0
BB19
K100
View Profile

That comes to an ERA+ of 99, which is slightly better than average for a starting pitcher. For his career, he owns an ERA+ of 99 across parts of 10 big-league seasons. Leake is owed the balance of a $16 million salary for this season, and his contract includes a $15 million salary for 2020 and an $18 million mutual option/$5 million buyout for 2021. Leake's former team the Cardinals are still paying part of his remaining salary obligations. 

Leake in essence replaces Zack Greinke in the Arizona rotation. Just prior to the deadline, the D-Backs sent Greinke to Houston in exchange for prospects

Heading to the Mariners is Caballero. He's a 22-year-old utility infielder in Class A-Advanced. He's hitting .268/.388/.396 with 28 stolen bases in 43 games. He's played 22 games at third, 11 at second and nine at shortstop this season.