Trading212API icon indicating copy to clipboard operation
Trading212API copied to clipboard

Portfolio composition missing average price

Open Adam48521 opened this issue 3 years ago • 1 comments

Hi,

Please could you update the portfolio function to include the (weighted) average purchase price of the share? Currently you can work out the average with the quantity of the shares purchased (y) and the total value invested (x), but x/y does not give you the weighted average purchase price. This data is provided by T212, so hopefully it can be incorporated into your scraping.

portfolio = trading212.get_portfolio_composition()

Thanks, Adam

Adam48521 avatar Sep 19 '22 21:09 Adam48521

Hi, I don't want to touch Trading212 response, can you do it on your own?

HellAmbro avatar Sep 22 '22 19:09 HellAmbro