Replies: 1 comment
8000
-
https://developer.etrade.com/getting-started/developer-guides After 2 hours with no activity, the access token becomes ‘inactive’, but can be renewed. You could also make a simple market call every hour and not require the renewal process. But the token will still expire at midnight. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a question about how the trade API Auth module works looking at Etrade API Docs
I always understood the workflow as below:
The key and secret are obtained from etrade.
We use the oauth.get_request_token (https://api.etrade.com/oauth/request_token) to get the "EtradeURL"
I go to the "EtradeURL" (which I think is a bit of a garbage process), login, do all that fun stuff, and retrieve the access tokens.
Use this access token with the oauth.get_access_token class to get the OAuth tokens.
I use these Oauth tokens for all my scripting/programming needs.
So these are my questions:
The Get Access Token page on the etrade API doc says "The production access token expires by default at midnight US Eastern time." Does that mean I only have to generate it once a day?
The Renew Access Token page says I can renew the token, can I use this to renew my token at 12:01AM EST every night and I never have to go through with regenerating the oauth tokens ever again?
Please let me know.
Beta Was this translation helpful? Give feedback.
All reactions