def call_bullbear(self, other_args: List[str]):
     """Process bullbear command"""
     parser = argparse.ArgumentParser(
         add_help=False,
         formatter_class=argparse.ArgumentDefaultsHelpFormatter,
         prog="bullbear",
         description="""
             Print bullbear sentiment based on last 30 messages on the board.
             Also prints the watchlist_count. [Source: Stocktwits]
         """,
     )
     ns_parser = parse_known_args_and_warn(parser, other_args)
     if ns_parser:
         if self.ticker:
             stocktwits_view.display_bullbear(ticker=self.ticker)
         else:
             console.print("No ticker loaded. Please load using 'load <ticker>'\n")
Beispiel #2
0
    def call_bullbear(self, other_args: List[str]):
        """Process bullbear command"""
        parser = argparse.ArgumentParser(
            add_help=False,
            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
            prog="bullbear",
            description="""
                Print bullbear sentiment based on last 30 messages on the board.
                Also prints the watchlist_count. [Source: Stocktwits]
            """,
        )

        try:
            ns_parser = parse_known_args_and_warn(parser, other_args)
            if not ns_parser:
                return
            if self._check_ticker():
                stocktwits_view.display_bullbear(ticker=self.ticker)

        except Exception as e:
            print(e, "\n")