How to extract current OHLC data using Dhan API?

I am trying to fetch 1 minute OHLC data using dhan api. I do not wish to download the entire historical data or intraday data since I do not need them for my purpose. just want the OHLC with volume data of recent candle on demand. Can someone please share some light on the code? Also, how to convert the timestamp format for human use? @Tradehull_Imran

Hello @A-String

Welcome to MadeForTrade community!

Currently, the API returns data for the entire day itself. We do not have a time filter as part of the parameter.

Noting this as feedback, as this will help limit the response data for easier processing.

Hello @9978442050

This is not available, you can use Daily Candle data and create weekly/monthly OHLC for the smae