Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth issue #56

Closed
alanoatwork opened this issue Nov 18, 2021 · 6 comments
Closed

oauth issue #56

alanoatwork opened this issue Nov 18, 2021 · 6 comments

Comments

@alanoatwork
Copy link

alanoatwork commented Nov 18, 2021

If I understand correctly, shouldn't renew_access_token(), if called every day, continue to allow access? After several weeks of operation I just received error 401 after calling renew_access_token() and had to call get_access_token() and go through the entire login process. Is there a programmatic way to avoid having to call get_access_token()?

@mw66
Copy link
Contributor

mw66 commented Nov 18, 2021

you can use selenium webdriver to automate login:

https://github.com/charley-padron/Trading-System/blob/master/automatedTrading.py

@alanoatwork
Copy link
Author

I'm running a headless Synology box, and running Selenium isn't supported. Is these not a method to continually renew access tokens with Etrade via this package? As far as I can tell, Ally or TDAmeritrade doesn't have this requirement to manually authenticate.

@mw66
Copy link
Contributor

mw66 commented Nov 18, 2021

Selenium can run headless, if you willing to write your login password somewhere, and a bit Selenium coding.

Last time I checked with Etrade, they said they are not offering such a requirement. You can call them to request again, if more people request this feature, maybe they will change their mind, esp, if you have a big account.

@chrsunwil
Copy link

Hi, I'm trying to use Selenium to login, but after I login, I briefly get the agreement page, until I get "Due to a logon delay or other issue, your authentication could not be completed at this time. Please try again. " at the top of the page. I wasn't able to find any info anywhere else. Do you have any experience with this?

@mw66
Copy link
Contributor

mw66 commented Dec 2, 2021

https://stackoverflow.com/questions/57752683/problem-logging-onto-e-trade-on-selenium-and-chrome-driver

You need ask etrade to give you ETWLCUST1 value, see the link above.

@chrsunwil
Copy link

Thanks! I don't think that actually was the issue I had been getting, but now that I've switched to using a chrome driver, I'm getting that exact error message. I'm probably not hiding the Selenium usage adequately enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants