jmfernandes / robin_stocks

This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at
http://www.robin-stocks.com
MIT License
1.72k stars 465 forks source link

ERROR: There was an issue loading pickle file. Authentication may be expired - logging in normally. #451

Open ghost opened 11 months ago

ghost commented 11 months ago

I am trying to login to Robinhood account using robin-stocks. I always get Authentication expire error. Sometimes it work but most of the time I get this error.

import robin_stocks as rs

otp = pyotp.TOTP("CODE FROM AUTH APP").now()
login = rs.robinhood.login(username="my_email_@gmail.com",password="my_password_here",mfa_code="otp")

Any help would highly be apprechiated

ghost commented 11 months ago

@jmfernandes @henryzhangpku @unacceptable

henryzhangpku commented 11 months ago

@jmfernandes @henryzhangpku @unacceptable

I would add those to give another try : login = rs.robinhood.login(username="myemail@gmail.com",password="my_password_here",mfa_code="otp", pickle_name="pickle_name")

ghost commented 11 months ago

where i can find "pickle_name". There is nothing inside project folder

Adelantado commented 11 months ago

Take a look at #396. Hope it helps