Jameson Taillon, the No. 2 overall pick in the first round, agreed on a deal believed to be for about $5 million with the Pittsburgh Pirates, SI.com has learned. Taillon is a right-handed pitching prodigy from the Houston area and a big addition for the Pirates.

The deadline to sign draft picks was midnight Monday.

"Taillon is advanced for a high school pitcher, absolutely," Pirates general manager Neal Huntington told the Associated Press. "When you throw in the mid to upper 90s, you've got a chance to move quickly."

The Orioles signed No. 3 overall pick Manny Machado, a high school shortstop, to a $5.25 million contract.

The Machado deal was reached 3 minutes before midnight, Orioles scouting director Joe Jordan said.

"We reached out during the day to try and get some dialogue going and periodically went through it. But again, the meat of this thing happened in the last hour," Jordan said.

The Indians and No. 5 overall pick pitcher Drew Pomeranz came to terms on a $2.65 million deal.

The Mets and No. 7 overall pick Matt Harvey, a right-hander from the University of North Carolina, agreed to a deal for a bit over $2.5 million.

The Reds agreed to a deal with No. 12 overall pick Yasmani Grandal, a catcher from the University of Miami, for about $3.23 million, sources also said.

In other first-round deals, the Cardinals came to terms with third baseman Zack Cox (No. 25), the Angels agreed with infielder Kaleb Cowart (No. 18), the Giants agreed with outfielder Gary Brown (No. 24) and the Dodgers signed LSU quarterback Zach Lee (No. 28).

Lee is going to leave LSU to focus solely on baseball.

The Rockies reached an agreement with Kyle Parker (No. 26), their top draft pick, that will allow him to play quarterback Clemson this fall before he hands off to baseball in the spring.

The Brewers did not agree with their No. 1 pick, right-hander Dylan Covey (No. 14).

Covey was recently diagnosed with diabetes, and Brewers general manager Doug Melvin said that played a pivotal role in his decision not to sign.

"We were willing to sign, but he felt with the management needed and discipline involved with diabetes it was necessary to stay close to home," Melvin said. "This was all a sudden, unexpected, tough-luck happening."

The Associated Press contributed to this article.

SI Apps
We've Got Apps Too
Get expert analysis, unrivaled access, and the award-winning storytelling only SI can provide - from Peter King, Tom Verducci, Lee Jenkins, Seth Davis, and more - delivered straight to you, along with up-to-the-minute news and live scores.