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.
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.
You can get started here.