-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import logging.config | ||
from .config import logging_config | ||
from .config import * | ||
from .fundamentals import * | ||
from .main import * | ||
from .sentiments import * | ||
from .storage import * | ||
from .technicals import * | ||
|
||
logging.config.dictConfig(logging_config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from .fundamentals import * | ||
from .config import SP_500_TICKERS, NASDAQ_100_TICKERS | ||
|
||
def get_tickers_scores(ticker_list=SP_500_TICKERS): | ||
res = [] | ||
for ticker in ticker_list: | ||
try: | ||
score = get_scores(ticker).iloc[:,-5:].mean(axis=1).sum() | ||
res.append([ticker, score]) | ||
print(ticker, score) | ||
except Exception as e: | ||
print(ticker, e) | ||
return res | ||
|