td-ameritrade-python-api
td-ameritrade-python-api copied to clipboard
error setting up the credentials file
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.'}
Same problem. Perhaps the ameritrade API changed?
I have been using the Alex's newer package without issue: https://github.com/areed1192/td-ameritrade-api
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