Add ratings over time to due diligence menu

This commit is contained in:
didier
2021-05-03 10:58:33 +01:00
parent 54fafab4a3
commit e547b0e11c
2 changed files with 10 additions and 1 deletions

View File

@@ -61,4 +61,4 @@ PATH_TO_SELENIUM_DRIVER = None # Replace with "PATH"
COINMARKETCAP_KEY = os.getenv("GT_CMC_API_KEY") or "REPLACE_ME"
# https://finnhub.io
API_FINNHUB_KEY = os.getenv("GT_API_FINNHUB_KEY") or "REPLACE_ME"
API_FINNHUB_KEY = os.getenv("GT_API_FINNHUB_KEY") or "c23k26qad3ieeb1lftug"

View File

@@ -15,6 +15,7 @@ from gamestonk_terminal.due_diligence import reddit_view as r_view
from gamestonk_terminal.due_diligence import news_view
from gamestonk_terminal.due_diligence import finra_view
from gamestonk_terminal.due_diligence import sec_view
from gamestonk_terminal.due_diligence import finnhub_view
from gamestonk_terminal import feature_flags as gtff
from gamestonk_terminal.helper_funcs import get_flair
from gamestonk_terminal.menu import session
@@ -32,6 +33,7 @@ class DueDiligenceController:
"short",
"rating",
"pt",
"rot",
"est",
"ins",
"insider",
@@ -91,6 +93,9 @@ class DueDiligenceController:
" rating rating of the company from strong sell to strong buy [FMP]"
)
print(" pt price targets over time [Business Insider]")
print(
" rot rating over timefrom strong sell to strong buy [Finnhub]"
)
print(
" est quarter and year analysts earnings estimates [Business Insider]"
)
@@ -155,6 +160,10 @@ class DueDiligenceController:
other_args, self.stock, self.ticker, self.start, self.interval
)
def call_rot(self, other_args: List[str]):
"""Process rot command"""
finnhub_view.rating_over_time(other_args, self.ticker)
def call_est(self, other_args: List[str]):
"""Process est command"""
bi_view.estimates(other_args, self.ticker)