I was trying to fetch prev_ohlc as well as live_ohlc using ohlc quote v3 url. it fetches live ohlc correctly but getting no prev_ohlc. neither it is showing any error nor warning
Full API Response Sample for first key: (‘NSE_EQ:BLUESTARCO’, {‘last_price’: 1959.0, ‘instrument_token’: ‘NSE_EQ|INE472A01039’, ‘prev_ohlc’: None, ‘live_ohlc’: {‘open’: 1987.0, ‘high’: 1987.0, ‘low’: 1951.1, ‘close’: 1959.0, ‘volume’: 35674, ‘ts’: 1760985000000}})
is it due to holidays or not optimised currently? But if it is due to holidays live ohlc too should display none or negative response
I am actually using historical api for prev day close. But I saw this just yesterday that using ohlc api I can fetch previous day/session close also. I actually want to use same ohlc api to fetch current day ohlc and prev day ohlc for some reasons. Also, because I can get both via a single request.
ohlc api document also shows that using 1 day interval i can get both current and previous day ohlc