Yes
Hi @Tradehull_Imran,
I am working on an algo where I need to analyse all F&O stocks on a daily timeframe after the market closes.
For example, after the market closes today (17/08/2026), I need to analyse the 17/08/2026 daily candle along with the OI data as part of my strategy.
However, I noticed that tsl.get_historical_data does not return today’s completed daily candle when I call it after market hours.
Could you please look into this and confirm whether there is a way to fetch the latest/current day’s completed candle data using tsl.get_historical_data or any other TSL/Dhan API method?
This is important for my EOD algo because I need to process the same day’s price + OI data immediately after market close.

Code I am using
import traceback
from Dhan_Tradehull import Tradehull
import pandas as pd
import talib
from rich import print
import time
import pdb
from config import client_code, pin, totp_secret
tsl = Tradehull(ClientCode = client_code, mode = "pin_totp", pin = pin, totp_secret = totp_secret)
watchlist = ["INFY"]
for name in watchlist:
try:
print(f"\nScanning for strong entries for {name}")
chart = tsl.get_historical_data(tradingsymbol = name, exchange = 'NSE', timeframe = "day")
last_candle = chart.iloc[-1]
ltp = float(last_candle["close"])
print(f"\n\tStock chart: {chart} ")
print(
f"\n\tStock Name: {name} | "
f"LTP: {ltp:.2f} \n"
#f"Last Candle: {last_candle}"
)
except Exception as e:
traceback.print_exc()
continue
Gentle Reminder on above request.
How can i retrieve hourly last 5 years data of naturalgas.
Its scanning last 5 years data but retrieve only last 3 months data.
Hi Sir,
Watched your recent video with Dhan, can you please tell how or from where to download VPIN indicator?
Hi Sir,
Watched your recent video with Dhan, can you please tell how or from where to download VPIN indicator? and how i can make it contact me on whats up +974 55243096
Hi @Mitesh_Avtani ,
The data is delayed at the API level itself. Therefore, the latest completed daily candle and OI data may not be available immediately after market closure through the API.
Hi @Tradehull_Imran,
Thanks for the clarification.
I have observed that the completed daily candle data becomes available through the API around 6:00 AM the next day.
However, for my EOD algo, I need to analyse all F&O stocks using the same day’s completed daily candle along with OI data, preferably within 4–5 hours after the market closes, rather than waiting until the next morning.
Is there any alternative method/API available in TSL or Dhan through which I can fetch the current day’s completed OHLC candle data after market close?
For example, can the completed daily candle be constructed/fetched using intraday data or any other API endpoint?
Please suggest the best approach for getting the same day’s completed candle data for EOD analysis.
Hi @Mitesh_Avtani ,
After the market closes, use any suitable intraday timeframe to fetch the data and filter it for the current day. From the filtered data, calculate the overall OHLC values: Open as the opening price of the first candle, High as the maximum high, Low as the minimum low, and Close as the closing price of the last candle.
Hi, I have created my startegy in DhanHQ cloud, now I need to run it on every 5 min but on Schedule option I don’t get it, can you help me on the same please?
Hi @Jesal ,
DhanHQ Cloud’s Schedule Execution option does not currently provide a direct “every 5 minutes” recurring schedule. The “Execute after delay → 5 min” option is for a one-time execution after a 5-minute delay, not for repeating every 5 minutes.
The recurring option supports Daily, Weekly, or Monthly schedules. So if you need the strategy to execute every 5 minutes during market hours, you would need to implement the 5-minute repetition within the strategy/workflow itself , rather than through the Schedule option.