A developer has sold 166 apartments in Hamilton and has agreed to build another 63 for the property’s new owner, as part of a $48.2 million deal brokered by The Kislak Co. Inc.