You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I attempt to call the optionsDF() or options() functions for an analytical query with the parameter interestRate = somefloat, it fails with TypeError: iteration over a 0-d array. If I comment out only the interestRate parameter, it runs flawlessly. The full code is below with the Traceback.
File "...python3.7/site-packages/tdameritrade/client.py", line 405, in optionsDF
optionType=optionType)
File "...python3.7/site-packages/tdameritrade/client.py", line 369, in options
return self._request(GET_OPTION_CHAIN, params=params).json()
File "...python3.7/site-packages/tdameritrade/client.py", line 84, in _request
resp = self.session.request(method, url, params=params, *args, **kwargs)
File "...python3.7/site-packages/tdameritrade/session.py", line 22, in request
return super().request(headers=self._headers, *args, **kwargs)
File "...python3.7/site-packages/requests/sessions.py", line 516, in request
prep = self.prepare_request(req)
File "...python3.7/site-packages/requests/sessions.py", line 459, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "...python3.7/site-packages/requests/models.py", line 314, in prepare
self.prepare_url(url, params)
File "...python3.7/site-packages/requests/models.py", line 432, in prepare_url
enc_params = self._encode_params(params)
File "...python3.7/site-packages/requests/models.py", line 100, in _encode_params
for v in vs:
TypeError: iteration over a 0-d array
The text was updated successfully, but these errors were encountered:
timkpaine
added
backlog
Issues that haven't been categorized or are not yet ready for work
bug
Concrete, reproducible bugs
labels
Jun 15, 2020
If I attempt to call the
optionsDF()
oroptions()
functions for an analytical query with the parameterinterestRate = somefloat
, it fails withTypeError: iteration over a 0-d array
. If I comment out only the interestRate parameter, it runs flawlessly. The full code is below with the Traceback.The text was updated successfully, but these errors were encountered: