public static final String getMonthlyExpiryCodeForFutures(final String futurePrefix, final int nthFuture, final LocalDate curveDate) {
//Year convention for historical data is specific to the futurePrefix
final LocalDate twoDigitYearSwitch;
final LocalDate today = LocalDate.now(OpenGammaClock.getInstance());
if (futurePrefix.equals("ED")) {
twoDigitYearSwitch = today.minus(Period.ofDays(2));
} else {
twoDigitYearSwitch = today.minus(Period.ofMonths(11)).minus(Period.ofDays(2));
}
if (futurePrefix.equals("FF")) {
return getMonthlyExpiryFFMonthYearCode(nthFuture, curveDate, twoDigitYearSwitch);