Getting Index OI data

Hi I’m getting data from websocket just fine with indexes though i’m struggling to get OI data, I believe that would be because the segment_id has to be 2 but i’m struggling to refer the right instrument id for NIFTY 50.

[
  {
    "segment_id": 0,
    "instruments": [
      { "id": 13, "name": "NIFTY 50" },
    ]
  }
]

Can someone please refer to a sample one so I can get OI data to test?

@Hardik

Hello @Mitaanshu_Agarwal

Welcome to MadeForTrade community!

In Websocket, you can subscribe to Quote data to get OI data packet streamed along with it. Do note that Nifty itself doesn’t have any OI. So you will have to subscribe to Futures/Options Contract of Nifty to get the same.