Gary Sanchez capped a four-run first inning with a three-run homer and the New York Yankees ran their winning streak over the Baltimore Orioles to 16 games with a 6-5 victory Wednesday afternoon at Yankee Stadium.

The Yankees finished the season series 17-2, their most wins against any opponent in a single season since going 17-5 against the Kansas City Athletics in 1959. New York’s 16-game winning streak is its longest against an opponent in a season since winning 21 straight over the St. Louis Browns in 1927.

Sanchez hit his 10th homer against the Orioles when he drove a 2-0 changeup from Dylan Bundy (5-13) over the center field fence and on top of the netting above Monument Park. It was his 26th homer and New York’s 61st against Baltimore, extending the major league record for homers against one opponent in a season.

Rockies 7, Diamondbacks 6: In Denver, Nolan Arenado hit a two-run, walk-off homer in the ninth inning. Ryan McMahon also homered to help the Rockies avoid a three-game sweep.

Athletics 9, Giants 5: In San Francisco, Matt Chapman hit two home runs and Robbie Grossman added a two-run shot to back the seven-inning shutout pitching of right-hander Homer Bailey to split their two-game interleague series.

Padres 7, Rays 2: In San Diego, Luis Urias hit a two-run, tiebreaking double, Eric Hosmer added a solo home run and Cal Quantrill held visiting Tampa Bay to two runs over 5 1/3 innings.

Urias drove in a total of three runs for a second straight game as the Padres snapped a three-game losing streak to end a 4-3 homestand.

Brewers 6, Twins 5: In Milwaukee, Trent Grisham hit a three-run homer in the bottom of the eighth inning to rally the Brewers.

It was the second home run of Grisham’s career. Eric Thames went 3-for-4 with a double, stolen base and two RBIs and Keston Hiura had two hits and a walk and an RBI for Milwaukee, which snapped a two-game losing streak.

White Sox 13, Astros 9: In Chicago, James McCann hit a tiebreaking grand slam with two outs in the eighth inning for the White Sox.

Tim Anderson went 4-for-5 with two doubles to lead Chicago’s 15-hit attack. McCann and Eloy Jimenez (solo homer) collected two hits.

Rangers 7, Blue Jays 3: in Toronto, Danny Santana homered and had three RBIs, Nomar Mazara also went deep and the visiting Texas Rangers recorded a 7-3 win over the Toronto Blue Jays on Wednesday afternoon.

Elvis Andrus added four hits, two RBIs and two stolen bases for the Rangers who avoided being swept in the three-game series. Texas finished its road trip at 3-6 and completed its season series with Toronto at 3-3.