I'm messing with a test program to get account history.
If I use
await a.get_history(session, start_date=date(2026, 2, 1)
I do not seem to get any transactions from 2/1 - 2/6. I fo get the last 20 transactions on the account. If I change to
await a.get_history(session, start_date=date(2026, 2, 1), end_date=(2026, 2, 9))
I get an error:
site-packages/tastytrade/utils.py", line 264, in validate_response
| raise TastytradeError(message)
| tastytrade.utils.TastytradeError: end-date: is invalid
Changing to (2026, 2, 10) does not error but also does not get the early Feb transactions, it returns the transactions from 02/09 through 02/26, which is clearly incorrect.
I'm messing with a test program to get account history.
If I use
await a.get_history(session, start_date=date(2026, 2, 1)
I do not seem to get any transactions from 2/1 - 2/6. I fo get the last 20 transactions on the account. If I change to
await a.get_history(session, start_date=date(2026, 2, 1), end_date=(2026, 2, 9))I get an error:
Changing to (2026, 2, 10) does not error but also does not get the early Feb transactions, it returns the transactions from 02/09 through 02/26, which is clearly incorrect.