示例#1
0
 def call_po(self, _):
     """Process po command"""
     ret = po_controller.menu([])
     if ret is False:
         self.print_help()
     else:
         return True
 def call_po(self, _):
     """Call the portfolio optimization menu with selected tickers"""
     if self.screen_tickers:
         self.queue = po_controller.menu(self.screen_tickers,
                                         from_submenu=True)
     else:
         print(
             "Some tickers must be screened first through one of the presets!\n"
         )
 def call_po(self, _):
     """Process po command"""
     self.queue = po_controller.menu([], self.queue)
示例#4
0
 def call_po(self, _):
     """Call the portfolio optimization menu with selected tickers"""
     if self.similar and len(self.similar) > 1:
         self.queue = po_controller.menu(self.similar, self.queue, from_submenu=True)
     else:
         print("Please make sure there are more than 1 similar tickers selected. \n")
示例#5
0
 def call_po(self, _):
     """Call the portfolio optimization menu with selected tickers"""
     return po_controller.menu(self.screen_tickers)
 def call_po(self, _):
     """Call the portfolio optimization menu with selected tickers"""
     return po_controller.menu([self.ticker] + self.similar)