It is not possible with Zerodha, and I don’t think any data vendor provides it in 5,10,15 seconds intervals.
The only way to do this is to build your custom chart data. You can use our APIs, which typically will give you a tick every second, and use those to make 5,10,15 seconds Open, High, Low, and Close. Use that to plot a chart.
You will need tech skills to be able to execute this.
Easier way will be buying tradingview premium. They do offer seconds chart.
Or as Nitin sir said , use Z’s api to build a chart from OHLC values. For that you might need a semi super computer or faster server.