Skip to content

Commit 09bcb9e

Browse files
committed
update
1 parent b701579 commit 09bcb9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alpaca_daily_losers/daily_losers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self):
4242
)
4343
self.statistics = Statistics(account=self.alpaca.trading.account, py_logger=py_logger)
4444

45-
def run(self, buy_limit: int = 6):
45+
def run(self, buy_limit: int = 6, article_limit: int = 4) -> None:
4646
"""
4747
Executes the main logic of the program.
4848
@@ -65,7 +65,7 @@ def run(self, buy_limit: int = 6):
6565
py_logger.error(f"Error liquidating positions for capital. Error: {e}")
6666
pass
6767
try:
68-
self.check_for_buy_opportunities(buy_limit=buy_limit)
68+
self.check_for_buy_opportunities(buy_limit=buy_limit, article_limit=article_limit)
6969
except Exception as e:
7070
py_logger.error(f"Error entering new positions. Error {e}")
7171

0 commit comments

Comments
 (0)