timkpaine / tdameritrade

Python interface to TD Ameritrade (https://developer.tdameritrade.com)
Apache License 2.0
520 stars 202 forks source link

accounts report errored out #132

Closed Oriono closed 3 years ago

Oriono commented 3 years ago

Describe the bug when requesting account positions, it failed. But other operations like pulling optionDF, watchlists and historyDF still working

To Reproduce Steps to reproduce the behavior:

  1. getting accout position with tdclient.accounts()
  2. See error

Expected behavior returning my account info

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

qililiu commented 3 years ago

Hello, I have the same error as described above. Can anyone help us to resolve it?

zachlim98 commented 3 years ago

Yup, can confirm having same error. Thanks for any help

Oriono commented 3 years ago

Fixed. in TDClient, we shouldn't include only one Account ID, that will error out anything related to accounts method. so instead of tdclient = td.TDClient(client_id,refresh_token,account_id) do tdclient = td.TDClient(client_id,refresh_token).