areed1192 / td-ameritrade-python-api

Unofficial Python API client library for TD Ameritrade. This library allows for easy access of the Standard API and allows users to build data pipelines for the Streaming API.
MIT License
685 stars 257 forks source link

Streaming UnexpectedResponseCode 3, msg is 'Login Denied' #240

Open hinson-x opened 2 years ago

hinson-x commented 2 years ago

I used the streaming code example from https://tda-api.readthedocs.io/en/latest/streaming.html

But I received this error: tda.streaming.UnexpectedResponseCode: unexpected response code: 3, msg is 'Login Denied.'

I've modified it to this: client = easy_client(config.api_key, config.redirect_uri, config.token_path)

and also changed many variables but still cannot get the streaming to work.

However when I use it to retrieve get_quote on my other python file, it works.

Does streaming have something extra or did something break?

Thanks.

rlimberger commented 1 year ago

Did you solve this? Im also running into this