Skip to content

Commit 878c0c2

Browse files
committed
Update portfolio.py
1 parent d30a0e7 commit 878c0c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pybroker/portfolio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,9 @@ def capture_bar(self, date: np.datetime64, df: pd.DataFrame):
987987
if index in df.index:
988988
df_row = df.loc[index].squeeze()
989989
if isinstance(df_row, pd.core.frame.DataFrame):
990-
raise ValueError("df has the same index. index:" + str(index))
990+
raise ValueError(
991+
"df has the same index. index:" + str(index)
992+
)
991993
close = to_decimal(df_row[DataCol.CLOSE.value])
992994
low = to_decimal(df_row[DataCol.LOW.value])
993995
high = to_decimal(df_row[DataCol.HIGH.value])

0 commit comments

Comments
 (0)