-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BAD_SUBSCRIPTION_TYPE error for pytr portfolio #37
Comments
I have the same. I think it is related to recent changes in Traderepublic like 2% of cash. |
Same here. Worked last week but shows me the same error message |
Short update: |
Do you have a list of all available subscription commands? |
I pushed my changes to https://github.com/miry/pytr/tree/miry_master
|
@miry With your changes the connection to websocket is possible again, thanks for that. There is a "bug", that the netValue of each position is 0, but you wrote in your code that is a ToDo. I'm curious for the next update. |
@ChemicalEnginer I think Traderepublic removed old I will look next week for missing data. |
@ChemicalEnginer Improved my changes and also add ability to show Title of the ISIN. |
Sent PR: #39 |
Are there any news about it? I am not using pytr, but another python tool, which has the same problem now. And I actually just need one value... the total depot amount. My current thoughts about it. So, the task is now to get the instrument data including the current price. Then we can multiply the netSize (which we have) with the current price and we have our personal amount for this instrument. And we have to repeat that with all instruments we have... add them up and we have the total value. |
PS: I achieved my goal. I'll share with you my code, maybe it is helpfull, even it is not straight for pytr (I work with https://github.com/Zarathustra2/TradeRepublicApi/).
I did it like I said. Hope it helps a bit. |
Hmm... I was a very happy man today in the morning. My depot value was 10 times higher than yesterday... :-) What happen? So I guess it is needed to use the websocket to collect first all ticker for all positions and then do the math (as far as I understood, this is the way the TR webapp is working). Or there is a way to really collect a single ticker, without websocket. |
@GordonInDaHouse I have the same understanding. Previous In my PR https://github.com/marzzzello/pytr/pull/39/files#r1191328848 I have not work on it, first wanted to check that netValue is valid per single ISIN. |
Hello, Is there a new change in their api or did i make a mistake in the installation of pip? 2023-06-14 18:21:34+0200 main DEBUG logging is set to debug |
There is a change in TraderReublic API. |
Yes, i know! It was my fault. I have make a mistake in the pip installation. Now the fix is working. Thanks for that :) |
Description of the bug
I tried to read out my portfolio with
pytr portfolio
, but got aBAD_SUBSCRIPTION_TYPE
error responseTo Reproduce
pytr portfolio
Expected behavior
See my current portfolio
Error log
Environment
Additional context
It was still working a couple of week ago. Other commands still work. Did they change the API?
The text was updated successfully, but these errors were encountered: