Prior to QuantLib 1.35
you could create the option obj via:
option = ql.DividendVanillaOption(payoff, exercise, div_dates, div_values)
How ever in the latest release, DividendVanillaOption
was deprecated and I'm not sure what the correct replacement should be, as the release doesn't state why this was deprecated. What should I replace DividendVanillaOption
with?
If you replace DividendVanillaOption
with VanillaOption
you get the following error:
TypeError: VanillaOption.__init__() takes 3 positional arguments but 5 were given