robinhood-unofficial / pyrh

Python Framework to make trades with the unofficial Robinhood API
https://pyrh.readthedocs.io/en/latest/
MIT License
1.78k stars 603 forks source link

I'm having an issue even getting started. #218

Closed DangerSquirrel-X closed 4 years ago

DangerSquirrel-X commented 4 years ago

Description

I'm trying to follow the tutorial for the master branch, but I'm getting this error that says: "init() takes 1 positional argument but 3 were given" Again, I'm following the tutorial, does this mean the tutorial is out of date? If so, what do I do? This is all have right now:

`import logincred from pyrh import Robinhood

robin = Robinhood(username=logincred.USERNAME,password=logincred.PASSWORD) robin.login()

stonk = "SPHD"

robin.print_quote(stonk) ` What am I missing?

adithyabsk commented 4 years ago

@DangerSquirrel-X not sure, can you please print the traceback along with the other information requested in the bug issue template (ie system info, project version, etc...)

Zucce05 commented 4 years ago

I just started using this. The quickstart guide is wrong. Move the username and password creds to the login function call. robin = Robinhood() robin.login(username=logincred.USERNAME,password=logincred.PASSWORD)

adithyabsk commented 4 years ago

@DangerSquirrel-X @Zucce05 you're right! the latest release and master are not in sync as this project is undergoing heavy updates. Please use @Zucce05's advice to log in

adithyabsk commented 4 years ago

I've updated the README, but will update again once master is pushed to pypi