You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using tf-quant-finance for plotting option values and greeks. When plotting at-expiration (so expiries=0) most of the models return nan for some or all prices. Is this intended behavior, in which case I should wrap my calls to tf-quant-finance with some code to counter this, or is this something that could be changed?
This issue shows up for:
Bjerksund-Stensland with modified_boundary=True for all prices on a call, but only out-of-the-money prices on puts
Adesi-Whaley for out-of-the-money prices on calls only
Binomial for all options (American or European, calls or puts)
Only Black-Scholes-Merton and Bjerksund-Stensland with modified_boundary=False are not affected by this.
I could submit a PR to fix this issue, but before I do the work I want to make sure that this is a bug and not a feature.
The text was updated successfully, but these errors were encountered:
I tried to whip up a quick fix before heading on vacation, but it was slightly more complicated than I had hoped. If you have time to fix any of these issues, then please do. If anything is left in a few weeks when I am back, then I will work on it.
I am using
tf-quant-finance
for plotting option values and greeks. When plotting at-expiration (soexpiries=0
) most of the models returnnan
for some or all prices. Is this intended behavior, in which case I should wrap my calls totf-quant-finance
with some code to counter this, or is this something that could be changed?This issue shows up for:
modified_boundary=True
for all prices on a call, but only out-of-the-money prices on putsOnly Black-Scholes-Merton and Bjerksund-Stensland with
modified_boundary=False
are not affected by this.I could submit a PR to fix this issue, but before I do the work I want to make sure that this is a bug and not a feature.
The text was updated successfully, but these errors were encountered: