Skip to content

Commit 65598d0

Browse files
authored
Update support.py
1 parent 1fa9168 commit 65598d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

optionlab/support.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def get_pl_profile(
2828
x: float,
2929
val: float,
3030
n: int,
31-
s: ndarray,
31+
s: np.ndarray,
3232
commission: float = 0.0,
33-
) -> tuple[ndarray, float]:
33+
) -> tuple[np.ndarray, float]:
3434
"""
3535
Returns the profit/loss profile and cost of an options trade at expiration.
3636
@@ -71,11 +71,11 @@ def get_pl_profile(
7171
)
7272
else:
7373
raise ValueError("Option type must be either 'call' or 'put'!")
74-
74+
7575

7676
def get_pl_profile_stock(
77-
s0: float, action: Action, n: int, s: ndarray, commission: float = 0.0
78-
) -> tuple[ndarray, float]:
77+
s0: float, action: Action, n: int, s: np.ndarray, commission: float = 0.0
78+
) -> tuple[np.ndarray, float]:
7979
"""
8080
Returns the profit/loss profile and cost of a stock position.
8181
@@ -176,7 +176,7 @@ def get_pl_profile_bs(
176176

177177

178178
@lru_cache
179-
def create_price_seq(min_price: float, max_price: float) -> ndarray:
179+
def create_price_seq(min_price: float, max_price: float) -> np.ndarray:
180180
"""
181181
Generates a sequence of stock prices from a minimum to a maximum price with
182182
increment $0.01.

0 commit comments

Comments
 (0)