Zarathustra2 / TradeRepublicApi

Unofficial trade republic API
MIT License
280 stars 69 forks source link

myTransactions.csv export contains error in case of capital yield tax optimization #15

Open jasshauer opened 2 years ago

jasshauer commented 2 years ago

I tried today the api - first big thanks for provisioning this api.

In my case for example i bought two times a share

6x shares 4x shares

and executed once a full stock selling 10x shares in timeline

in the csv extraction 10.2334x shares are displayed

after e.g. importing into PortfolioPerformance a negative stock left after import.

Reason for this should be: in Sell order execution timelineEvent the cashChangeAmount contains of
value of selling the share + capital yield tax (germany) optimization (displayed in timeline details as accounting 1 (share value) and accounting 2 (optimization)

based on the logic to calculate the shares based on cashChangeAmount / body(price of) = stock

Proposed Solution: In Addition to the timeline the timeline details should be considered via payload. (and maybe in such case directly the PDF (if exist) with all details could be downloaded for each timelineEvent