Django web frontend for pytr to download all Trade Republic depot data.
- Activate your Trade Republic account for web access on https://app.traderepublic.com/login
- Submit your mobile number and PIN code
- Wait for the 2FA/OTP code, which is sent to your mobile app (iOS/Android)
- Submit your 2FA/OTP code and confirm the JS popup. Wait and be patient!
- Enjoy your whole trading history as one-time download (zip)
- You can optionally upload your PDFs to https://www.parqet.com/ for a depot analysis.
- Please stargaze this repository to show your affection. I would be pleased!
The following depot data is retrieved:
git clone https://github.com/l4rm4nd/TRSync
cd TRSync
sudo docker build -t trsync -f docker/Dockerfile .
sudo docker run -it --rm -d --name trsync -p 127.0.0.1:8000:8000 -e SECRET_KEY=<YOUR-SECRET> -e DOMAIN=<DOMAIN-HOSTNAME> trsync:latest
If you trust me, please don't, you can use my public repository on Dockerhub:
sudo docker run -it --rm -d --name trsync -p 127.0.0.1:8000:8000 -e SECRET_KEY=<YOUR-SECRET> -e DOMAIN=<DOMAIN-HOSTNAME> l4rm4nd/trsync:latest
Afterwards, the web frontend is accessible at http://127.0.0.1:8000. Use a reverse proxy and SSL/TLS if you plan to expose the instance.
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate : respectively. For example, -p 8888:8000 would expose port 8000 from inside the container to be accessible from the host's IP on port 8888 outside the container.
Parameter | Function | Details |
---|---|---|
-e SECRET_KEY=<KEY> | Define a Django secret key | Optional, recommended for production use |
-e DOMAIN=trsync.example.tld | Domain name used in settings.py for ALLOWED_HOSTS | Optional, recommended for production use |
-p 8000 | Django web application via UWSGI (HTTP) | Optional, recommended for dev without reverse proxy |
I am not affiliated with Trade Republic Bank GmbH.
This repository is a personal project to conveniently download all Trade Republic depot data.
I am not responsible for any data loss or security incidents. Please spawn a local, private docker instance.
!! Do not submit credentials on foreign, untrusted sites !!