The Yankees are traded for Frankie Montas.

Need to start pitching because of durability issues with several members of their rotation, the Yankees traded for one of the best hands available in baseball, acquiring Frankie Montas from the Oakland Athletics in a six-player trade that also saw the Yankees add right-handed Lou Trivino.

In the deal, first reported by Jack Curry of the YES network and later confirmed by the Yankees, left-handers Ken Waldichuk and JP Sears, right-hander Luis Medina and second baseman Cooper Bowman got A’s.

While Valdychuk is a respected pitcher who has dominated Somerset’s class AA, the Yankees have managed to hold onto shortstop Anthony Volpe, who is considered the team’s top prospect.

In 29-year-old Montas, the Yankees acquired a reliable first-line player. He has a 3.18 ERA in 19 starts this season but has been stuck in last place Oakland, leading to a 4-9 record. Montas was 13-9 last season with a 3.37 ERA and his seven-season overall career record is 35-32.

Montaz, who is eligible for salary arbitration after this year and could become a free agent in 2024, was widely viewed as one of the top two starting players available for this year’s trade deadline, along with Cincinnati Reds’ Luis Castillo, who was traded to the Seattle Mariners last week.

Earlier Monday, the Yankees announced another deal in which they acquired right hand pitcher Scott Effross from the Chicago Cubs for AAA right-hander Hayden Wesnesky. Effross and Trivino should be able to help the bullpen, which performed well this season but he had to repeatedly adjust to injury and inconsistency.

While the Yankees may not have completed the deal before Tuesday’s trading deadline, they were among the most active teams. acquired outfielder Andrew Benintendi from the Kansas City Royals last week.