the unofficial Robinhood API (pre-alpha)
pip install robinhood-api
The first time you log in, you will be prompted to verify your identity by entering a code send to your phone or email. This will generate an OAuth bearer token that will be stored in tokens.json. Subsequent logins will not require your credentials.
import robinhood
# you will be prompted for your username and password
robinhood.login()
# check your stocks
print(robinhood.positions())
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.