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.
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 portfolioto 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
compactPortfolioByTypeinstead ofcompactPortfolio.Based on my tests, it seems to behave exactly the same, although I’m not sure what the previous one returned.