HISTORICAL DATA IS NOT MATCHING THE CLOSING PRICE

gopinath8907
Hi Team, I downloaded the historical test data for Bank Nifty with one-day time frame. I found that the closing price at the end of the day in Zerodha's front-end differs from the API's historical data. I have verified this across multiple days, but the issue exists.

Example:
INDEX: BNF
DATE:08-01-2025
TIMEFRAME: 1DAY
API HISTORICAL CLOSE PRICE: 49836.15
KITE FRONTEND CLOSE PRICE: 49835.05
Code used to download the historical data :
kite.historical_data(
instrument_token=symbol,
from_date=start_date,
to_date=end_date,
interval=interval
)
  • rakeshr
    API HISTORICAL CLOSE PRICE: 49836.15
    KITE FRONTEND CLOSE PRICE: 49835.05
    I just checked for the day interval for bank nifty(instrument token:260105), and both web and historical data close are the same.
    {'date': datetime.datetime(2025, 1, 8, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 50201.75, 'high': 50246.9, 'low': 49389.75, 'close': 49835.05, 'volume': 0, 'oi': 0}
    At what time, are you fetching the day data?
    Bhav copy exact close of the day sync happens post-midnight.
  • gopinath8907
    Thank you so much... U r correct am running at evening and the price is not matching.. Now am running at morning the price is matching.. Thank you for the insights
This discussion has been closed.