Unable to get last 5 min candle data using Historical API

pranshua1
Hi,

I am trying to fetch 5 min candle data but it is not giving me the latest candle. For example, Current time is 10:31 AM and I am trying to fetch 5 min candle data FROM - 09:15 AM TO - 03:30 PM then at the current time i.e. 10:31 AM it is showing me data till candle 10:20 AM and it is not showing 10:25 AM candle.

1. What can be the possible issue?
2. Is there any way to just fetch last 5 min candle instead of using historical API. For example - At 10:31 AM, I just want the 10:25 Candle data.

Thanks
  • sujith
    The historical data API is provided for backtesting purposes only, you need to generate candles at your end for live market strategies.
    You can get started here.
  • Snehan
    How to get multiple instruments data with kite.historical api ?
  • rakeshr
    @Snehan
    How to get multiple instruments data with kite.historical API ?
    You can't fetch Historical Data for multiple instruments in a single go. You need to loop-in the instruments list and fetch it one-by-one.
Sign In or Register to comment.