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
I'm getting the following error when trying to do get_balances on a cash acct:
>>> t.get_balances()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/tradier_python/tradier_api.py", line 80, in get_balances
res = AccountsAPIResponse(**data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 164, in __init__
__pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for AccountsAPIResponse
balances.margin
Field required [type=missing, input_value={'option_short_value': 0,..., 'unsettled_funds': 0}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
balances.pdt
Field required [type=missing, input_value={'option_short_value': 0,..., 'unsettled_funds': 0}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
I don’t have much use for the code or time to maintain it. I’d be happy to transfer ownership if somebody wants to take it over. Sent from my iPhoneOn Aug 9, 2024, at 12:10 PM, Simon Q ***@***.***> wrote:
The owner of tradier-python is not very active. Just keep a local copy of the code in your source code repo, it's only two files.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Sorry for the delay. I can't transfer ownership to you because it says you already have a fork with the same name. I added you as a collaborator for now and we can decide how to proceed getting the ownership transfered to you. I will need your PyPi username to add you as an owner on PyPi.
Activity
simonque commentedon Mar 14, 2024
Fixed in 927380e
elarchet commentedon Aug 9, 2024
I have a similar issue:
I am using tradier-python==0.1.3
simonque commentedon Aug 9, 2024
The owner of tradier-python is not very active. Just keep a local copy of the code in your source code repo, it's only two files.
phileaton commentedon Aug 9, 2024
simonque commentedon Oct 18, 2024
phileaton commentedon Feb 17, 2025
Sorry for the delay. I can't transfer ownership to you because it says you already have a fork with the same name. I added you as a collaborator for now and we can decide how to proceed getting the ownership transfered to you. I will need your PyPi username to add you as an owner on PyPi.
simonque commentedon Feb 17, 2025