The New York Yankees will sign Masahiro Tanaka to a seven-year, $155 million contract.

Tanaka will have the ability to opt-out of the contract after four seasons.

The contract is the fifth-highest in baseball history for a pitcher, behind Clayton Kershaw, Justin Verlander, Felix Hernandez and CC Sabathia.