Need live 5 min live intraday data..while market is in open.. which api i have to use? and can u give the code file to use in my scenario

If i use below api with while loop … iam not getting last two 5 min candle delayed from the live market data… can any one help and give me the code …
data = dhan.intraday_minute_data(
symbol,
exchange,
product,
str(start_date),
str(end_date),
days_back
)