Skip to content

Commit

Permalink
Update support.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaveiga authored Jan 23, 2025
1 parent 65598d0 commit ebf8660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optionlab/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_pl_profile_bs(
target_to_maturity_years: float,
volatility: float,
n: int,
s: ndarray,
s: np.ndarray,
y: float = 0.0,
commission: float = 0.0,
) -> tuple[FloatOrNdarray, float]:
Expand Down Expand Up @@ -173,7 +173,7 @@ def get_pl_profile_bs(
profile: FloatOrNdarray = fac * n * (calcprice - val) - commission

return profile, n * cost - commission


@lru_cache
def create_price_seq(min_price: float, max_price: float) -> np.ndarray:
Expand Down

0 comments on commit ebf8660

Please sign in to comment.