Skip to content
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

web-app #13

Open
step21 opened this issue Oct 12, 2021 · 7 comments
Open

web-app #13

step21 opened this issue Oct 12, 2021 · 7 comments

Comments

@step21
Copy link

step21 commented Oct 12, 2021

As they have a web app now, it should be easier, no?

@Jolg42
Copy link

Jolg42 commented Oct 19, 2021

From what I see the web app only shows the current status, no history. Communication happens through subscribing through ids via WebSockets.
So probably not easier I would say.

@Zarathustra2
Copy link
Owner

I am not sure what the question is?
Re their API: It is all based on websocket pub & sub

@step21
Copy link
Author

step21 commented Oct 20, 2021

Sorry for this less than perfectly worded issue. What I meant was not related to usage, but authentication -
as far as I understood, before you had to basically reset your app, to authenticate for the API. As with the web app this is not necessary, I would expect that this is not necessary anymore, but I can call the login function, get a code via sms and go (and then use websockets etc). I was just not sure as I think in this repo at least the 'reset' part is still reflected somewhat. (

f"{self.url}/api/v1/auth/account/reset/device",
)
So I just wanted to ask if this is still necessary, sorry for the question with not enough info.

@Zarathustra2
Copy link
Owner

Probably there is now a better/different mechanism for that but as I don't use TradeRepublic as my broker I am not sure whether I find the time to try out the new web app and check the new login mechanism

@step21
Copy link
Author

step21 commented Oct 20, 2021

Ok sure no worries. Maybe I'll get to it myself at some point.

@kosimst
Copy link

kosimst commented Nov 4, 2021

@step21 I wrote a quick and dirty script to subscribe to your portfolio using the TR Web API Authentication. The only problem with this approach is that the session only lasts a certain amount of time. Thus, you need to re-enter the 2FA token every time you restart or as mentioned after some time. I tried to automate the 2FA process using tasker, but was not successful.
My idea would be to set up a notification trigger in tasker, extract the token from the notification and then send it to a custom webhook, where it can be used to (re-)authenticate the script.

Here is my script: https://gist.github.com/kosimst/30be00741674d262886065a5cb3a0295

Would be awesome if someone could solve the tasker part.

@step21
Copy link
Author

step21 commented Nov 5, 2021

@kosimst Awesome, thanks.
I don't think I can develop the tasker part, as this seems to be Android only and atm I only have an iOS device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants