Average Price
The average share price is a calculation method designed to figure out the mean cost involved in buying a set of stocks traded on the stock market. It's a strategy that investors often use when they acquire shares from the same company at different points in time and at varying prices. The goal here is to determine the average purchase price, which can help level out the ups and downs in stock prices over time.
To work out the average price, you add up the total amount you've paid for all the shares and then divide it by the total number of shares you've bought. For example, if an investor bought 100 shares of a company in two transactions — first 20 shares at R$10 each and then another 80 shares at R$12 each — the average acquisition price would be calculated like this:
Where is the average price, is the quantity of shares and the price paid on each share, from to , where is the number of transactions.
So, in this scenario, the average acquisition price for the 100 shares turns out to be R$11.60 per share.
To get the average price, you can visit the Average Price endpoint. This link provides the average price for each position in your portfolio.