[Fix]Close #710
This commit is contained in:
parent
e7e9089936
commit
9df447ad48
@ -112,7 +112,7 @@ def calculateImpv(price, f, k, r, t, cp):
|
|||||||
|
|
||||||
if cp == 1 and (price > (f - k) * exp(-r * t)):
|
if cp == 1 and (price > (f - k) * exp(-r * t)):
|
||||||
meet = True
|
meet = True
|
||||||
elif cp == -1 and (price > k * exp(-r * t) - f):
|
elif cp == -1 and (price > k - f):
|
||||||
meet = True
|
meet = True
|
||||||
|
|
||||||
# 若不满足最小价值,则直接返回0
|
# 若不满足最小价值,则直接返回0
|
||||||
|
Loading…
Reference in New Issue
Block a user