OHLC - Close Price mismatch between value received and actual close price on chart the next day

warrenf
I am running my script after trading hours at (5PM) to get the OHLC for the day and save that in my database.
I have noticed that the closing price is always incorrect.

For eg:
NMDC
Closing Price on 2022-03-31 was returned as 159.2 but shows as 162.55 in the chart

BHEL
Closing Price on 2022-03-31 was returned as 50.2 but shows as 49.35 in the chart

The closing price on the same day seems to be incorrect.
The past historical data provides the correct closing prices but that means we have to subscribe for an additional Rs 2000 per month.

How to resolve this?
Tagged:
  • sujith
    Kite Ticker will store the last tick received today. So till next day morning, it will not show BHAV copy values.
  • SRIJAN
    The closing price in the ohlc quote is the closing price of the previous trading day.
  • warrenf
    Ok thanks, so the solution is to run the script in the mornings instead of after trading hours.
This discussion has been closed.