robinhood-python
prepare robinhood 2factor auth
login robinhood
account >> setting >> security and privacy >> two-factor authentication click

click update

click "i can't scan the code

copy code and save it (APP-KEY)

write code below
pip install robin-stocks pip install pyotp vi robin.pyimport robin_stocks.robinhood as robin import pyotp login = robin.login("YOUR-EMAIL","YOUR-PASSWORD") totp = pyotp.TOTP("APP-KEY").now() print("Current OTP",totp)run code then you can see OTP put into robinhood
python3 robin.py

copy and save backup code for future

let's create secret file
vi ./totp.txtAPP-KEY USER-EMAIL USER-PASSWORD
let's create python script
run and check output

Get Qoute / Buy / Sell

Caution
You can only daytrade a limited number of times. Please note that
Last updated
Was this helpful?