Historical data wrong in 5 min and 15 min candle for 9:15 candle and sometime 9:20 for 5 min candle

vivekpatil1930
Historical data wrong in 5 min and 15 min candle for 9:15 candle and sometime 9:20 for 5 min candle and 9:30 candle for 15 min candle.

please let me if i am making mistakes in following function

$kite->getHistoricalData(specified_token,"5minute","2018-12-26 09:15:00","2018-12-26 10:00:00",false)


$kite->getHistoricalData(specified_token,"15minute","2018-12-26 09:15:00","2018-12-26 10:00:00",false)



  • rakeshr
    @vivekpatil1930
    First 5 minute candle will be formed at 9:20, and first 15-minute candle at 9:30, and if you query 5 minute candle before 9:20, it will show OHLC formed till that particular time.So, to get correct 5-minute candle, you need to query Historical data post 9:20.
Sign In or Register to comment.