-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent argument names for dividends across option pricing models #50
Comments
Hi Alex, Thanks for noticing that. This is indeed an oversight. Would you like to send a PR ensuring that A gracious way to rename the parameter is to use a deprecation warning for Here is a simple concrete example:
User can either use Please let me know if you would like to send a PR which would be very much appreciated. Thanks! |
Hi Cyril, Sure, I will work on this PR. I agree with using Regards, |
Thank you Alex! This is now merged. |
Argument names for dividends across different option pricing models appear to be different, with no obvious reason for the difference. For example,
tff.black_scholes.option_price
takes incontinuous_dividends
, whiletff.black_scholes.option_price_binomial
takes individend_rates
.If there is no reason for the difference, then I would suggest changing
dividend_rates
tocontinuous_dividends
, astff.black_scholes.approximations.adesi_whaley
also takescontinuous_dividends
. This would make it easier to write reusable code independent of the pricing model used.What do others think of this? If everyone agrees to this change, then I can make it and submit the pull request.
The text was updated successfully, but these errors were encountered: