tdameritrade
tdameritrade copied to clipboard
snapshot quote returning as boolean
Hi, just getting started on this, and found when I run the test, this is the result:
python tdapi_test.py XXXXXX xxxxxxxx XLU Password: Getting snapshot quote for XLU Traceback (most recent call last): File "tdapi_test.py", line 60, in
main() File "tdapi_test.py", line 25, in main print(quoteList[args.ticker]) TypeError: 'bool' object is not subscriptable
For some reason the call to td.getSnapshotQuote([args.ticker],'stock',True) is returning a boolean object.
I am using python 3.7.2. Maybe that's the reason?