Position average price is different from order buy average price

monk03
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:


  • rakeshr
    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.
  • monk03
    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?
  • rakeshr
    I had positions earlier, the average price reduced. am I right?
    Yes, avg price work as per FIFO.
  • monk03
    Thanks a lot @rakeshr
This discussion has been closed.