We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b701579 commit 09bcb9eCopy full SHA for 09bcb9e
src/alpaca_daily_losers/daily_losers.py
@@ -42,7 +42,7 @@ def __init__(self):
42
)
43
self.statistics = Statistics(account=self.alpaca.trading.account, py_logger=py_logger)
44
45
- def run(self, buy_limit: int = 6):
+ def run(self, buy_limit: int = 6, article_limit: int = 4) -> None:
46
"""
47
Executes the main logic of the program.
48
@@ -65,7 +65,7 @@ def run(self, buy_limit: int = 6):
65
py_logger.error(f"Error liquidating positions for capital. Error: {e}")
66
pass
67
try:
68
- self.check_for_buy_opportunities(buy_limit=buy_limit)
+ self.check_for_buy_opportunities(buy_limit=buy_limit, article_limit=article_limit)
69
except Exception as e:
70
py_logger.error(f"Error entering new positions. Error {e}")
71
0 commit comments