Example #1
0
    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")
Example #2
0
from pyrh import Robinhood
import private_cfg

rh = Robinhood(username=private_cfg.username, password=private_cfg.password)

rh.login()
rh.print_quote("AAPL")