Skip to content

History not working right - possible date formatting issue #312

@wayne47git

Description

@wayne47git

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions