quantlib.time.imm.next_code

next_code(code_or_date, bool main_cycle=True, Date reference_date=Date())

Next IMM code following the given date or code

Returns the IMM code for next contract listed in the International Money Market section of the Chicago Mercantile Exchange.