Aug 17, 2010 7:55 AM EST

The Orioles agreed to terms with first-round pick shortstop Manny Machado with three minutes to go before Monday night's midnight deadline.

Machado, the third pick overall in June's amateur draft, will receive, pending a physical, a $5.25 million bonus, the second-largest in Orioles history, according to a source.

Matt Wieters, who is also represented by agent Scott Boras, signed for $6 million as the fifth overall pick in 2007.

Via Baltimore Sun