All Projects → marzzzello → pytr

marzzzello / pytr

Licence: MIT license
Use TradeRepublic in terminal and mass download all documents

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pytr

AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (-80.14%)
Mutual labels:  portfolio, finance
FinanceKit
FinanceKit is a Framework for iOS and Mac to build apps working with financial data, like money, currencies, stocks, portfolio, transactions and other concepts.
Stars: ✭ 15 (-89.36%)
Mutual labels:  portfolio, finance
okama
Investment portfolio and stocks analyzing tools for Python with free historical data
Stars: ✭ 87 (-38.3%)
Mutual labels:  portfolio, finance
SBTi-finance-tool
This toolkit helps companies and financial institutions to assess the temperature alignment of current targets, commitments, and investment and lending portfolios, and to use this information to develop targets for official validation by the SBTi. See the wiki for a change log.
Stars: ✭ 39 (-72.34%)
Mutual labels:  portfolio, finance
Python Trading Robot
A trading robot, that can submit basic orders in an automated fashion using the TD API.
Stars: ✭ 235 (+66.67%)
Mutual labels:  portfolio, finance
Node Finance
Module for portfolio optimization, prices and options
Stars: ✭ 101 (-28.37%)
Mutual labels:  portfolio, finance
crypto-portfolio
A CLI Cyrptocurrency Portfolio Tracker
Stars: ✭ 12 (-91.49%)
Mutual labels:  portfolio, finance
Alpha Mind
quantitative security portfolio analysis. The analysis pipeline including data storage abstraction, alpha calculation, ML based alpha combining and portfolio calculation.
Stars: ✭ 171 (+21.28%)
Mutual labels:  portfolio, finance
lakshmi
Investing library and command-line interface inspired by the Bogleheads philosophy
Stars: ✭ 107 (-24.11%)
Mutual labels:  portfolio, finance
simple portfolio
Export trades from Robinhood and run basic reporting on portfolio performance
Stars: ✭ 17 (-87.94%)
Mutual labels:  portfolio, finance
AlphaVantage.Net
.Net client library for Alpha Vantage API
Stars: ✭ 65 (-53.9%)
Mutual labels:  finance
financisto
Financisto - open-source personal finance tracker for Android
Stars: ✭ 116 (-17.73%)
Mutual labels:  finance
devFolio
Portfolio built with React (Gatsby) • Strapi • GraphQL 🎯
Stars: ✭ 25 (-82.27%)
Mutual labels:  portfolio
balance
A laravel finance application for everyday use
Stars: ✭ 23 (-83.69%)
Mutual labels:  finance
playground-portfolio
Playground portfolio.
Stars: ✭ 45 (-68.09%)
Mutual labels:  portfolio
DevFolio
A Modern Portfolio Template for Developers with easy setup process documented(with hosting).
Stars: ✭ 96 (-31.91%)
Mutual labels:  portfolio
kimlimjustin.com
My personal website
Stars: ✭ 16 (-88.65%)
Mutual labels:  portfolio
MLiFC
Course Material for the machine learning in financial context bootcamp
Stars: ✭ 102 (-27.66%)
Mutual labels:  finance
knut
knut is an efficient plain text accounting tool with support for multiple currencies and valuation.
Stars: ✭ 40 (-71.63%)
Mutual labels:  finance
cash
Home Bookkeeping on ExtJS 4, PHP 5, SQLite 3
Stars: ✭ 37 (-73.76%)
Mutual labels:  finance

pytr: Use TradeRepublic in terminal

This is a library for the private API of the Trade Republic online brokerage. I am not affiliated with Trade Republic Bank GmbH.

Installation

Install with pip install pytr

Or you can clone the repo like so:

git clone https://github.com/marzzzello/pytr.git
cd pytr
pip install .

Usage

$ pytr help
usage: pytr [-h] [-v {warning,info,debug}] [-V]
            {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion}
            ...

Use "pytr command_name --help" to get detailed help to a specific command

Commands:
  {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion}
                         Desired action to perform
    help                 Print this help message
    login                Check if credentials file exists. If not create it
                         and ask for input. Try to login. Ask for device reset
                         if needed
    dl_docs              Download all pdf documents from the timeline and sort
                         them into folders. Also export account transactions
                         (account_transactions.csv) and JSON files with all
                         events (events_with_documents.json and
                         other_events.json
    portfolio            Show current portfolio
    details              Get details for an ISIN
    get_price_alarms     Get overview of current price alarms
    set_price_alarms     Set price alarms based on diff from current price
    export_transactions  Create a CSV with the deposits and removals ready for
                         importing into Portfolio Performance
    completion           Print shell tab completion

Options:
  -h, --help             show this help message and exit
  -v {warning,info,debug}, --verbosity {warning,info,debug}
                         Set verbosity level (default: info)
  -V, --version          Print version information and quit

Authentication

There are two authentication methods:

  • Web login (default)
  • App login

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

App login is the older method that uses the same login method as the TradeRepublic app. First you need to perform a device reset - a private key will be generated that pins your "device". The private key is saved to your keyfile. This procedure will log you out from your mobile device.

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

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].