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
684 stars 252 forks source link

getting empty quotes using version 0.3.5 #177

Closed frankhhuo closed 3 years ago

frankhhuo commented 3 years ago

I have recently upgraded to 0.3.5, however, when I am running code snippets that worked before, I am getting empty quotes by calling: msft_quotes = TDSession.get_quotes(instruments=['MSFT'])

and msft_qutoes will be None after the call.

When I did TDSession.login(), it did return True and I have not changed my credentials. not sure what caused the problem.

Thanks very much!

frankhhuo commented 3 years ago

When I was using 0.3.4, I started to get the td.execptions.TknExpError: {"error":Not Authorized."}. I saw the solution in another issue is to pip install 0.3.5. However, with this version, when I am doing a Unit Test, it returns None, instead of a quote for what I described above.

frankhhuo commented 3 years ago

I found out that my authentication expired and after I re-authorized, it worked. Thanks.