joshfraser / robinhood-to-csv

Python script to export Robinhood trades to a CSV file
MIT License
259 stars 109 forks source link

If you are having issues with login in 2024 #73

Open batubb opened 3 weeks ago

batubb commented 3 weeks ago

If you are having issues with log in errors in 2024, here's what I did to fix it:

1- in Robinhood.py add the line "scope": "internal" to the fields Dict in the method def login(both under the if mfa_code and the else statement)

2- in Robinhood.py, under self.headers in init, change "X-Robinhood-API-Version" from "1.0.0" to "1.431.4"

3- in Robinhood.py, in init, comment out "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15"