Skip to content

Commit 83d3035

Browse files
authored
V2.1.4 (#24)
* update version * removed vscode * fix int len error * fix
1 parent 68bfed2 commit 83d3035

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "py-alpaca-daily-losers"
3-
version = "2.1.3"
3+
version = "2.1.4"
44
description = "Daily Losers strategy, uses py-alpaca-api for Alpaca Markets integration."
55
authors = ["TexasCoding <[email protected]>"]
66
license = "MIT"

src/alpaca_daily_losers/daily_losers.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
TimeRemainingColumn,
1515
)
1616

17+
from alpaca_daily_losers.close_positions import ClosePositions
18+
from alpaca_daily_losers.global_functions import (
19+
get_ticker_data,
20+
send_message,
21+
send_position_messages,
22+
)
23+
from alpaca_daily_losers.liquidate import Liquidate
24+
from alpaca_daily_losers.openai import OpenAIAPI
1725
from alpaca_daily_losers.statistics import Statistics
1826

19-
from .close_positions import ClosePositions
20-
from .global_functions import get_ticker_data, send_message, send_position_messages
21-
from .liquidate import Liquidate
22-
from .openai import OpenAIAPI
23-
2427
# from tqdm import tqdm
2528

2629

@@ -105,8 +108,8 @@ def check_for_buy_opportunities(self) -> None:
105108

106109
if len(tickers) > 0:
107110
console.print(
108-
f"Found [bold]{len(tickers)}[/bold] buy opportunities based on daily \
109-
losers and news sentiment",
111+
f"Found [bold]{len(tickers)}[/bold] buy \
112+
opportunities based on daily losers and news sentiment",
110113
style="red",
111114
)
112115
self.open_positions(tickers=tickers)
@@ -134,7 +137,7 @@ def open_positions(self, tickers: list, ticker_limit: int = 8) -> None:
134137
# )
135138
console.print(
136139
f"Entering new posistions based on criteria\n.\
137-
Limit to {len(ticker_limit)} stocks by default",
140+
Limit to {ticker_limit} stocks.",
138141
style="green",
139142
)
140143

0 commit comments

Comments
 (0)