Open interest in websocket
-
I'm trying to get the OI from the websocket but there is no field named "oi" or "toi" which are for the open interest. @admin please add this field to the response. Your documentation says oi is the part of response but in reality, it isn't.
-
@Deb88 duddy can you tell me how can solve my this problem Attempting to resubscribe/reconnect...
-
@Deb88 buddy did you found solution for this
-
@Deb88 Can you tell me how you get the solution. I am still getting this message only
on open
In on pong function==> b'\x00' -
@Deb88 never mind , got it working
-
@admin hi , websocket 2 is not working , just stuck at ''on open
Attempting to resubscribe/reconnect...'' -
HI @azkhan, please check our latest release which includes OI https://smartapi.angelbroking.com/topic/1861/user-feedback-websocket-2-0-beta-rollout-python-language
-
-
HI @Shubham009 Currently we dont have any update on it.
-
@admin any update on it
-
HI @Sukhwant280 Currently we dont provide that functionality.
-
in this code if you see, i am getting open/high/low/close for one ticker one by one using for loop.
Please advise if we can get the same for multiple tickers in one go.
appreciate your co-operation
thanks
Sukhwant -
@admin thanks a lot it is just the exhaustive list of tickers in NFO, NSE and other exchanges.
Can we get Bid and Ask of tickers via api or only open/high/low/close from the below link/Code:
Setting the access to get Open, high, Low, Close of options
smartApi =SmartConnect(api_key="YourAPIKEY") login = smartApi.generateSession('YourClientID', 'YourPassword') refreshToken = login['data']['refreshToken'] feedToken = smartApi.getfeedToken() smartApi.getProfile(refreshToken) smartApi.generateToken(refreshToken) prices_df = pd.DataFrame() # ------------------------------------ get Open, high, Low, Close of the Option Tickers for index,row in tickerdf.iterrows(): exchange = row['exch_seg'] tradingsymbol = row['symbol'] symboltoken = int(row['token']) data = smartApi.ltpData(exchange, tradingsymbol, symboltoken) prices = pd.json_normalize(data['data'],errors='ignore') prices['BussDate'] = vdate prices_df = prices_df.append(prices).reset_index(drop=True)
-
HI @Ashok We are working on this on priority and this will be provided in next release.
-
@admin, thanks for getting back. We do appreciate that the team is working on it. But on a broader note, A product roadmap will help us to plan our work. For Eg: I am waiting for oi/toi for 7 months without any end date.
-
HI @Ashok We will update you on this we appreciate your patience.
-
@admin When is the next release planned ?
-
Hi @Sukhwant280
- link for getting options tickers:
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
HI @Sukhwant280 said in Open interest in websocket:
HI All,
i want to get Bid/Ask of NSE Options for particular stocks in python.
https://smartapi.angelbroking.com/docs/WebSocketStreaming - link for getting options tickers:
-
HI All,
i want to get Bid/Ask of NSE Options for particular stocks in python.
i got this for starters:
https://github.com/angelbroking-github/smartapi-pythonPlease help sharing the code or a link to get Bid/Ask or High/Low/Open/Close for list of Option tickers. Also Code on how to find out Option Tickers
thanks a lot in advance
Sukhwant -
@admin Thanks :)