Skip to content

This program provides an alternative access to Trade Republic via the console.

License

Notifications You must be signed in to change notification settings

ExploracuriousAlex/yapytr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yapytr: Yet Another Python Trade Republic program to use Trade Republic via the console

This program provides an alternative access to Trade Republic via the console. It bases on pytr from marzzzello.

It is a refactored version of pytr after I got better acquainted with how pytr works and how Python works in general. The rewrite is mainly about fixing pylint warnings, rewriting docstrings and renaming variables, classes, functions and modules for better understanding.

Neither is it endorsed by Trade Republic nor am I in any relationship with Trade Republic (Trade Republic Bank GmbH).

Use at your own risk!

Installation

Clone the repo and install e.g. with pip:

git clone https://github.com/ExploracuriousAlex/yapytr.git
cd yapytr
pip install .

Usage

$ yapytr help
usage: yapytr [-h] [-v {debug,info,warning}]
                   {account_info,cancel_price_alarm,clean,completion,details,dl_docs,export_transactions,login,print_price_alarms,portfolio,set_price_alarm,version} ...

This program provides an alternative access to Trade Republic via the console.

options:
  -h, --help                  show this help message and exit
  -v {debug,info,warning}, --verbosity {debug,info,warning}
                              set verbosity level (default: info)

commands:
  {account_info,cancel_price_alarm,clean,completion,details,dl_docs,export_transactions,login,print_price_alarms,portfolio,set_price_alarm,version}
    account_info              print account information
    cancel_price_alarm        cancel price alarm
    clean                     clean yapytr settings
    completion                print shell completion script
    details                   print details for an ISIN
    dl_docs                   download documents
    export_transactions       export transactions for Portfolio Performance
    login                     login to Trade Republic
    print_price_alarms        print price alarms
    portfolio                 print portfolio
    set_price_alarm           set price alarm
    version                   print yapytr version

Authentication

Yapytr uses the same login method as app.traderepublic.com, meaning you receive a token in the TradeRepublic app or via SMS.

$ yapytr login
$ # or
$ yapytr login --phone_no +49123456789 --pin 1234

If no arguments are supplied yapytr will look for them in the file ~/.yapytr/credentials (the first line must contain the phone number, the second line the pin). If the file doesn't exist yapytr will ask for for the phone number and pin.

About

This program provides an alternative access to Trade Republic via the console.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages