How to get sectoral market feed data from the upstox WebSocket similar to index and stocks.
"ohlc": [
{
"interval": "1d",
"open": 260,
"high": 282.7,
"low": 136.75,
"close": 141,
"volume": 32205075,
"ts": "1725820200000",
"vol": "32205075"
},
I’m getting open_interest data from the current day candles data and historical candle data but I’m not getting it from the OHLC data in the websockets. Are you planning to include it or is there any specific reason for not including this?
@Pradeep_Jaiswar Can you please help me with both these queries?
Hi @adhil_a_backer,
In our WebSocket implementation, open interest is provided, but it is not included within the marketOHLC
object. Instead, it exists at a higher layer.
In the v3 WebSocket, open interest is available under the field oi
. Please note that you will receive open interest data only if you subscribe to WebSocket feeds in either full mode or option greeks mode.
For more information, kindly refer to our Market Data Feeder Documentation.
Thank you!
@Ketan Thanks for the response. I have gone through the documentation for websockets V3. I have one more concern regarding the 1min and 30 min data. I’m able to get it from V2 market feed but I’m not getting it in V3 market feed (in full mode). How can I subscribe for it?