Need clarity on Api full json responses of bank nifty index

Hi Team, @Pradeep_Jaiswar
I am using upstox API web socket to pull bank nifty data. Please find below response. I am able to see two records with same intervals like “interval”:“I1” and “interval”:“I1”, other “interval”:“I30” and “interval”:“I30”. So what is the difference between those same interval records. Please clarify.

{“ltp”:{“ff”:{“indexFF”:{“ltpc”:{“cp”:48581.7,“ltp”:48846.55,“ltt”:“1712646476000”},“marketOHLC”:{“ohlc”:[{“close”:48846.55,“high”:48960.75,“interval”:“1d”,“low”:48621.85,“open”:48810.8,“ts”:“1712601000000”},{“close”:48841.95,“high”:48847.05,“interval”:“I1”,“low”:48823.75,“open”:48830.6,“ts”:“1712646360000”},{“close”:48846.55,“high”:48859.1,“interval”:“I1”,“low”:48837.85,“open”:48840.35,“ts”:“1712646420000”},{“close”:48907.5,“high”:48951.95,“interval”:“I30”,“low”:48873.7,“open”:48913.35,“ts”:“1712643300000”},{“close”:48846.55,“high”:48929.0,“interval”:“I30”,“low”:48823.75,“open”:48908.0,“ts”:“1712645100000”}]},“yh”:48716.95,“yl”:41799.0}}}}

Thanks,

The two records represent the previous and current candles, distinguished by their timestamps. In the given example for a 1-minute interval, the details are as follows:

1712646360000 corresponds to Tuesday, 9 April 2024 at 12:36:00. (previous)
1712646420000 corresponds to Tuesday, 9 April 2024 at 12:37:00. (latest)

The same applies to the 30-minute candle.

I hope this information is helpful.

1 Like

Thanks for the information