Skip to content

Portfolio mode not working #246

@xurxofp

Description

@xurxofp

Description of the bug
When using the code with portfolio, it doesn’t return any open positions.

To Reproduce
Have open positions and run pytr portfolio to check them. You’ll see that it doesn’t display any.

Expected behavior
It should display the open positions.

Additional context
After inspecting the websocket directly from the Trade Republic web app and running some local tests, it seems they changed the endpoint.
It looks like they’re now using compactPortfolioByType instead of compactPortfolio.

Based on my tests, it seems to behave exactly the same, although I’m not sure what the previous one returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions