Kansas City, Mo. The Kansas City Royals agreed to a contract with Mike Moustakas, the No. 2 overall pick in this year's draft, 11 minutes before the midnight deadline Wednesday.
Moustakas gets a $4 million signing bonus.
A Royals spokesman said agent Scott Boras called general manager Dayton Moore at 11:49 p.m. EDT to say the deal had been struck for Moustakas, a power-hitting infielder out of high school in California.
The 6-foot, 195-pound shortstop batted .577 for Chatsworth High School in the Los Angeles area during his senior season, breaking the state high school record for career (52) and single-season (24) home runs.
Under a new baseball rule this year, if the sides had not reached agreement by midnight, the Royals would have lost the rights to Moustakas.