A former executive at a New York investor firm has been sentenced to 2.5 years in prison for insider trading.