Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README Quick Start Example code doesn't work #301

Closed
RobertAgee opened this issue Dec 1, 2022 · 0 comments · Fixed by #302
Closed

README Quick Start Example code doesn't work #301

RobertAgee opened this issue Dec 1, 2022 · 0 comments · Fixed by #302

Comments

@RobertAgee
Copy link
Contributor

Description

The example code in the README's Quick Start:

from pyrh import Robinhood

rh = Robinhood()
rh.login(username="YOUR_EMAIL", password="YOUR_PASSWORD")
rh.print_quote("AAPL")

returns a TypeError:

Traceback (most recent call last):
  File "C:\Users\xxx\xxx\xxx\main.py", line 8, in <module>
    rh = Robinhood()
TypeError: SessionManager.__init__() missing 2 required positional arguments: 'username' and 'password'

is corrected as:

from pyrh import Robinhood

rh = Robinhood(username="YOUR_EMAIL", password="YOUR_PASSWORD")
rh.login()
rh.print_quote("AAPL")

Will submit a pull request with the update.

adithyabsk added a commit that referenced this issue Dec 2, 2022
Co-authored-by: Adithya Balaji <adithyabsk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant