OHLC recent candle not matching with Charts

ectwoo
When I'm fetching data using Hist data API of recent candle OHLC not matching with zerodha chart OHLC, Mostly close doesn't matches.
CLOSE : 47258.2 Open : 47252.2 HIGH : 47266.1 LOW : 47247.75 12:09 candle OHLC from API BANKNIFTY SPOT, Here close is not matching
Tagged:
  • rakeshr
    recent candle OHLC not matching with zerodha chart OHLC
    Have you requested the historical data API before the candle close period?
    Can you paste here the complete request log?
  • ectwoo
    My condition is like
    if curr_time % time_frame == 0 and (curr_time.second ==0 or 1)
    timeframe is 5 15
    And there's some discrepancy with chart data, mostly close data points

    Also I have added the condition, if curr_time is there in hist data then remove that i.e only consider closed candles
Sign In or Register to comment.