I am using https://kite.trade/docs/connect/v3/portfolio/#positions API to fetch the realized & unrealized Pnl for instruments for the day at the end of the day. But, even if I call the API as late as 11:30 PM I am seeing the instruments realized PnL is coming as unrealized PnL.
Example response for one of the options instrument which i tried today at around 11:40 PM.