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
Unable to get account information
The code was working last week.
Code:
session = Session("Username", "Password") # Live - API enabled at TT
print(session)
Returns session handle - #So I gather session is the same and working
<tastytrade.session.Session object at 0x0000016B7A517DD0>
account = Account.get_accounts(session,"Accountnumber")
OR
accounts = Account.get_accounts(session)
account = accounts[0] # Assuming you're using the first account
Fail with:
Field required [type=missing, input_value={'account-number': 'Account...vel': 'No Restrictions'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/missing
Account in error in above error message - is partial of live account and correct for both methods.
Have they changed something?
Or am i doing something wrong - as I said code worked last week.
Thanks In Advance
The text was updated successfully, but these errors were encountered:
Hi sorry newbie here, hope not wasting your time.
Unable to get account information
The code was working last week.
Code:
session = Session("Username", "Password") # Live - API enabled at TT
print(session)
Returns session handle - #So I gather session is the same and working
<tastytrade.session.Session object at 0x0000016B7A517DD0>
account = Account.get_accounts(session,"Accountnumber")
OR
accounts = Account.get_accounts(session)
account = accounts[0] # Assuming you're using the first account
Fail with:
Field required [type=missing, input_value={'account-number': 'Account...vel': 'No Restrictions'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/missing
Account in error in above error message - is partial of live account and correct for both methods.
Have they changed something?
Or am i doing something wrong - as I said code worked last week.
Thanks In Advance
The text was updated successfully, but these errors were encountered: