def addRobinhood(self): rh = Robinhood() if self.RobinHoodUser: rh.login(username=self.RobinHoodUser, password=self.RobinHoodPassword) rh.print_quote("AAPL") else: print("You must set your Robinhood passwords up in init")
from pyrh import Robinhood import private_cfg rh = Robinhood(username=private_cfg.username, password=private_cfg.password) rh.login() rh.print_quote("AAPL")