Why does the P&L on holdings and positions page on Kite change post 3.30 PM?
Firstly, you need to understand the difference between the last traded price (LTP) and the closing price.
LTP - The LTP is the actual last traded price on the exchange at any given point.
Close Price - Close price for the day is the average price of the last 30 mins, i.e., between 3:00 PM to 3:30 PM. The exchange computes the average and declares the close price at around 3:40 PM. Read more on this here .
Equity P&L on Holdings page
The price used to calculate P&L for stocks in holdings differs based on the time you view it.
Between 9:15 AM to 3:30 PM: Kite uses the LTP or the live price on the exchange to calculate holding value and hence the P&L.
Post Market (Post 3.30 PM): As mentioned above, post-market closing, exchanges declare the closing price for the day by taking the weighted average for the last 30 mins of trading. The holdings page uses the close price to calculate the value and P&L.
Since the last traded price of the day and the closing price (last 30 min average) are usually different, the P&L you will see at 3.30 PM will be different compared to what you see post 3.30 PM.
Futures & options P&L on Positions page
Similarly, the price used to calculate P&L for Futures & Options (F&O) also differs based on what time you view it.
Between 9.15 AM to 3.30 PM: Kite uses the LTP or the live price on the exchange to calculate position value and hence the P&L.
Between 3.30 PM to midnight: Kite uses the last traded price at 3.30 PM to calculate the position value and hence the P&L.
Next day until 9.15 AM or market opening: Kite uses the previous day’s Closing price to calculate the P&L.
Since the last traded price and closing price can be different, the P&L shown on the positions page can differ.