pytr-org / pytr

Use TradeRepublic in terminal and mass download all documents
https://pypi.org/project/pytr/
MIT License
390 stars 71 forks source link

Fixing issue 64 #65

Closed Katzmann1983 closed 3 months ago

Katzmann1983 commented 4 months ago

Original fix failed if position is not tradeable, e.g. for dividends.

Timon0512 commented 3 months ago

Great Fix! Thank you for keeping this project alive! Is there a way to export the portfolio as json or csv?

I also would love a function that loops through all isins in your portfolio and saves the details.

Katzmann1983 commented 3 months ago

there are some csvs and jsons exported already. Also there is the portfolio option. What exactly are you missing?

Timon0512 commented 3 months ago

My ultimate goal is to build a streamlit app on top of pytr. Similar to Portfolio Performance.

As far as I understand the portfolio option prints the portfolio to the terminal. I was already able to build a funcion that saves the current portfolio as a csv. So I am fine with that. I also wrote a function that loops through all isins in your portfolio and creates seperate files with news, dividends, ratings etc.

The only thing what I am missing right now is a complete transaction list with all buys, sells, dividends etc. I guess I can find that in the events_with_docs.json file. With my beginner knowlege this is quite tricky as the most informations are very nested inside that file. But I guess I will find a way.

Thank you very much for your work :)