Hello, I had a small query. I've written my first program and was testing it today. I realized that the average price in the positions tab is different from the average price in the orders - executed tab. What might be the reason for this? Would be great if someone could help me out here. Please refer images below and in particular the stock ticker 'SAIL:
In holdings, avg price is calculated based on FIFO. Whereas on the order book, it means the price on which order is executed. You can know more about FIFO here.
Okay! Got it! Just to clarify once, for this particular trade, the average price at which the trade was executed was 72.80 rupees but because I had positions earlier, the average price reduced. am I right?