There is a lot of inconsistency in data for the previous candle.. for example when trying to retrieve data for 10:45 to 11:00 interval when i run the code at 11:00:10 and want to refer to the previous candle it should logically refer to 10:45 to 11:00 candle but a lot of times it refers to 10:30-10:45 candle... Pls help
You can go through this thread.