diff --git a/gamestonk_terminal/config_terminal.py b/gamestonk_terminal/config_terminal.py index 3dfa270ae34..babd6245ce8 100644 --- a/gamestonk_terminal/config_terminal.py +++ b/gamestonk_terminal/config_terminal.py @@ -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" diff --git a/gamestonk_terminal/due_diligence/dd_controller.py b/gamestonk_terminal/due_diligence/dd_controller.py index 27efe9eb880..f24ddcad017 100644 --- a/gamestonk_terminal/due_diligence/dd_controller.py +++ b/gamestonk_terminal/due_diligence/dd_controller.py @@ -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)