Does from and to interval matter when fetching candlestick data for 3min,5min candles? For example if I am fetching data with From Datetime as : 2021-03-24 13:18:26 2021-03-24 13:33:24 then will it give me incorrect data for 13:18 candle or 13:33 candle?
I am fetching data with From Datetime as : 2021-03-24 13:18:26 2021-03-24 13:33:24 then will it give me incorrect data for 13:18 candle or 13:33 candle?
Yes, it will differ. Required period candles are formed, based on your input interval. You can know more about this under historical data FAQs.