td-ameritrade-python-api icon indicating copy to clipboard operation
td-ameritrade-python-api copied to clipboard

error setting up the credentials file

Open adikira opened this issue 3 years ago • 3 comments

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.'}

adikira avatar Oct 04 '22 23:10 adikira

Same problem. Perhaps the ameritrade API changed?

mattcbro avatar Dec 04 '22 08:12 mattcbro

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

jb261 avatar Dec 11 '22 17:12 jb261

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

tradingwithme avatar Jan 02 '23 21:01 tradingwithme