BOSTON — By 5 p.m. Friday, James Kaprielian and the Yankees have to have a contract signed or the first-round pick will no longer be able to negotiate with the club.

Kaprielian, the right-hander from UCLA the Yankees took with the 16th pick in June’s draft, is being advised by agent Scott Boras.

“We are negotiating. I hope we get it done,’’ amateur scouting director Damon Oppenheimer said Sunday.

Texas high school outfielder Trent Clark, taken by the Brewers with the 15th pick, signed for $2.7 million. Florida lefty Brady Aiken was taken with the 17th selection by the Indians and signed for $2.513 million.

If Kaprielian doesn’t sign with the Yankees he can return to UCLA for his senior year or go the Independent League route.

The last first-round pick to spurn the Yankees was California high school right-hander Gerrit Cole, the 28th pick in the 2008 draft. Cole went to UCLA, was drafted by the Pirates with the first pick in the 2011 draft and is among the top hurlers in the big leagues.

Nathan Eovaldi posted the victory Sunday and is 9-2 with a 4.50 ERA in a team-leading 18 starts. He allowed three runs and seven hits in five innings and is 4-0 with a 2.93 ERA in the last five starts.

That is quite an improvement from the 15-35 hurler the Yankees acquired from the Marlins.

Alex Rodriguez’s RBI double in the top of the sixth was his 3,020th career hit and tied him with Rafael Palmeiro for 24th place on the all-time list. Rodriguez needs three hits to tie Lou Brock for 23rd place.

The Yankees have won five straight series at Fenway since the beginning of last season.

Carlos Beltran ran the bases on Sunday before the Yankees-Red Sox game at Fenway Park and reported no problem with the strained left oblique muscle that has him on the DL.

Beltran traveled to Tampa Sunday night, is scheduled to work out Monday and begin a minor league rehab assignment Tuesday with the Tampa Yankees.

“He ran the bases here to make sure everything is falling into place,’’ manager Joe Girardi said.

Beltran, who hasn’t played since June 3, said Friday he hopes to come off the DL this Friday when the Yankees open a three-game series against the Mariners at Yankee Stadium. However, that plan is predicated on Beltran not suffering a setback during minor league games.

Girardi announced the order of his rotation for the first six games after the All-Star break.

Masahiro Tanaka, Michael Pineda and CC Sabathia will face the Mariners Friday, Saturday and Sunday at Yankee Stadium. Eovaldi and Ivan Nova start the first two games (July 21 and 22) against the Orioles and Tanaka gets the third (July 23).

“We tried to get everyone almost equal rest. Seattle has a good number of left-handed hitters, so CC, we put him there,’’ Girardi said.

Lefty swingers are batting .191 (17-for-89) with one homer against Sabathia compared to right-handers who are batting .331 (105-for-317) with 18 homers. In 17 starts Sabathia is 4-8 with a 5.47 ERA.

With Rob Refsnyder making his major league debut Saturday night against the Red Sox, Girardi was asked if he recalled his first big league game. He did and then some.

“How nervous I was. I always joke when I see [former Cubs teammate] Rick Sutcliffe because he told me, ‘Don’t worry kid, I got these guys. Bobby Dernier never swings at the first pitch.’ We were playing the Phillies [Opening Day 1989] the first pitch he hits a single to right. I go, ‘Oh my gosh, here we go.’ ’’ Girardi recalled. “Mitch Williams loaded the bases with nobody out in the ninth and we won the game. We had a one-run lead and then I proceeded to get engaged that night. Kind of a life-changer day.’’