Skip to content

Commit

Permalink
Update black_scholes.py
Browse files Browse the repository at this point in the history
Bug fix fwd delta
  • Loading branch information
jkirkby3 authored Apr 22, 2024
1 parent 787f443 commit 94d5b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fypy/pricing/analytical/black_scholes.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def black76_delta(F: float,
phi = 1 if is_call else -1
d_1 = (np.log(F / K) + 0.5 * vol_st ** 2) / vol_st
delta = phi * norm.cdf(phi * d_1)
if is_fwd_delta:
if not is_fwd_delta:
delta *= div_disc
return delta

Expand Down

0 comments on commit 94d5b02

Please sign in to comment.