is there kite connect method to get the 5mins candle history records for last 500 or 1000 from the latest candle example get 500 history candle from 5mins time frame in banknifity
You have to write your own logic for this. From 9:15 to 15:30 is 6.25 hours or 375 minutes So at EOD after market close if you want last 1000 candles of 5 minute interval that would be 1000/375*5 = 13.3333 days worth of data. So you would get data for the last 14 days and discard any candles that are older than 1000.
If your candle interval is 1 minute it will be 1000/375*1 = 2.66. So you would need to get last 3 days data and discard anything older than 1000 records.
If your candle interval is 10 minutes, it would be 1000/375*10 = 26.66 days of data.
If you are using python it becomes super easy as the data is returned as a list and all you need to do is list[-1000:] to get the last 1000 records.
From 9:15 to 15:30 is 6.25 hours or 375 minutes
So at EOD after market close if you want last 1000 candles of 5 minute interval that would be 1000/375*5 = 13.3333 days worth of data.
So you would get data for the last 14 days and discard any candles that are older than 1000.
If your candle interval is 1 minute it will be 1000/375*1 = 2.66. So you would need to get last 3 days data and discard anything older than 1000 records.
If your candle interval is 10 minutes, it would be 1000/375*10 = 26.66 days of data.
If you are using python it becomes super easy as the data is returned as a list and all you need to do is list[-1000:] to get the last 1000 records.