How to get OI data?

I am trying to get the OI data, but it is replying as zero, so am I making any mistakes or there are some issues in the API ?

{‘d’: {‘NSE:BANKNIFTY23SEPFUT’: {‘totalbuyqty’: 54660, ‘totalsellqty’: 94470, ‘ask’: [{‘price’: 44717.9, ‘volume’: 30, ‘ord’: 1}, {‘price’: 44717.95, ‘volume’: 30, ‘ord’: 1}, {‘price’: 44718, ‘volume’: 15, ‘ord’: 1}, {‘price’: 44719.6, ‘volume’: 15, ‘ord’: 1}, {‘price’: 44719.8, ‘volume’: 15, ‘ord’: 1}], ‘bids’: [{‘price’: 44711, ‘volume’: 30, ‘ord’: 2}, {‘price’: 44710.1, ‘volume’: 900, ‘ord’: 1}, {‘price’: 44710, ‘volume’: 225, ‘ord’: 1}, {‘price’: 44708, ‘volume’: 75, ‘ord’: 3}, {‘price’: 44707.95, ‘volume’: 15, ‘ord’: 1}], ‘o’: 44725, ‘h’: 45099, ‘l’: 44589.55, ‘c’: 44759.25, ‘chp’: -0.11, ‘tick_Size’: 0.05, ‘ch’: -48.25, ‘ltq’: 15, ‘ltt’: 1695376799, ‘ltp’: 44711, ‘v’: 2803260, ‘atp’: 44850.33, ‘lower_ckt’: 40209.9, ‘upper_ckt’: 49145.4, ‘expiry’: ‘1695911400’, ‘oi’: 0, ‘oiflag’: True, ‘pdoi’: 0, ‘oipercent’: 0}}, ‘message’: ‘’, ‘s’: ‘ok’}

Hi @mpashis-ol4

you are correct. Currently we are not providing OI data so it is coming zero.
However we are working on that, once it will be available we will update you.

Thank you.

Thanks

I also would like to see OI data.

Also is there any direct API to get index Option Chain for any particular expiry ?

Hi @abhinandan.patil.ih0a9bqj
You can use data websocket for live data and for expired options we are not providing any data for it as per now.

Please read more in API docs

@mpashis-ol4 , we can’t get OI data using fyers api or any other API’s , because NSE only providing OI data , no other brokers providing OI data in websocket . Using websocket we can get only price , volume , buy quantity and sell quantity that’s all.

yes correct @sathishmurugan450-phl

My strategies are already running with OI and I am getting the same with ws but with different broker. There are brokers providing OI on WS

Hi @mpashis-ol4
We are working on that. We will also provide OI data.

Any update on this? I tried fetching some atm strikes OI data and it returns as zero.

Hey @hiren_banker ,

If you are getting 0 in the response , you must be passing a non derivative symbool in the inputs , as OI is only applicable for derivative contracts , please check that.
Which is th api you ar ehitting ? can you please check again as when i hit the depth i am able to get the OI values