Historical data for custom time frame

Hi @Tradehull_Imran,

Please suggest how Can I get historical indray data for a custom time frame like: 2, 10, 20. I’m only aboe to fatch data for 1, 5, 15 and so on.

creating-indicators-on-custom-time-frame-using-tradehull-library/56554

Thanks

Hii @Anil_Kumar2 , we truly appreciate your valuable feedback regarding the addition of customized time frames (2, 10, and 20) in the Data API. Your suggestion has been shared with our team for review and consideration.

As of now, you can access Open, High, Low, Close, OI, and Volume data for 1, 5, 15, 25, and 60-minute candles for any instrument over the past 5 years. This data is available across all exchanges and segments for active instruments. For more information, you can check out our documentation here: DhanHQ Data API.

Is 5-year historical data available for MCX crude oil? I am unable to fetch 1-minute data for MCX products; only data up to 3 months is available.