/// <summary> /// returns the IMM code for next contract listed in the /// relevant Exchange. /// </summary> /// <param name="exchangeCommodityName">Currently defined for: ED, ER, RA, BAX, L, ES, EY, HR, IR, IB and W.</param> /// <param name="date">The date.</param> /// <param name="mainCycle">Is the contract a main cycle type?</param> /// <returns>The futures code string</returns> public string GetNextFuturesCode(string exchangeCommodityName, DateTime date, bool mainCycle) { string result = LastTradingDayHelper.GetNextFuturesCode(exchangeCommodityName, date, mainCycle); return(result); }