joshfraser / robinhood-to-csv

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

TypeError: login() got an unexpected keyword argument 'device_token' #51

Closed johnvernam closed 4 years ago

johnvernam commented 4 years ago

Looks like there is a new issue, I am getting the following when i try to login...

Traceback (most recent call last): File "csv-options-export.py", line 39, in logged_in = collect_login_data(robinhood_obj=robinhood, username=username, password=password, device_token=device_token, mfa_code=mfa_code) File "/Users/JohnVernam/Desktop/robinhood-to-csv-master/login_data.py", line 38, in collect_login_data logged_in = robinhood_obj.login(username=username, password=password, device_token=device_token) TypeError: login() got an unexpected keyword argument 'device_token'

SantoshRCholraju commented 4 years ago

change the following in Robinhood.py def login(self, username, password, mfa_code=None): to def login(self, username, password, device_token, mfa_code=None): basically its complaining abt missing arg, add the device_token arg