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

error setting up the credentials file #248

Open
adikira opened this issue Oct 4, 2022 · 3 comments
Open

error setting up the credentials file #248

adikira opened this issue Oct 4, 2022 · 3 comments

Comments

@adikira
Copy link

adikira commented Oct 4, 2022

I tried to set it up and the auth workflow fails for me. The credentials2.json file does not exist and is not created. I was able to get the access_token and the refresh_token manually. Alternatively, can somebody provide a format for the credentials_path file to set it up manually? Any help would be appreciated.

(base) C:\bin\cygwin\cygwin64\home\git\td-ameritrade-python-api>python C:\bin\cygwin\cygwin64\home\git\td-ameritrade-python-api\my_setup.py
Please go to URL provided authorize your account: https://auth.tdameritrade.com/auth?response_type=code&redirect_uri=http%3A%2F127.0.0.1&client_id=XXXXXXXXXXX%40AMER.OAUTHAP
Paste the full URL redirect here: https://127.0.0.1/?code=XXXXXXXXXXXXXXXXXX
{'credential_path': 'credentials2.json',
'message': 'The credential file does not contain expiration times for your '
'tokens, please go through the oAuth process.'}
{'credential_path': 'credentials2.json',
'message': 'The credential file does not contain expiration times for your '
'tokens, please go through the oAuth process.'}

@mattcbro
Copy link

mattcbro commented Dec 4, 2022

Same problem. Perhaps the ameritrade API changed?

@jb261
Copy link

jb261 commented Dec 11, 2022

I have been using the Alex's newer package without issue: https://github.com/areed1192/td-ameritrade-api

@tradingwithme
Copy link

tradingwithme commented Jan 2, 2023

I have been getting this error message whenever I tried to run the setup.py. The issue stems from the setup() function Any suggestions?
GetoptError: option -f not recognized

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