How to get Post closing session Close price via Socket

Please advise how to get post closing session close price for NSE & BSE segment via Socket OR any other alternate option to get this.

I am afraid websocket works only when the market is open, you can use rest api for latest price, BUt rest be assured the chart close and data wont be same.

I have tried using OHLC and LTP Quotes, but I am not getting the close price after 3:30 PM. The closing price will be available after 3:40 PM.

We need the closing price after the market closed (3:30 PM).

For NSE, it should be last 30 minutes avg.
For BSE, it should be last 15 minutes avg.