Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Open interest in websocket

    Python SDK
    10
    35
    505
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      azkhan @admin last edited by

      @admin Thanks 🙂

      S A 2 Replies Last reply Reply Quote 0
      • S
        Sukhwant280 @azkhan last edited by

        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-python

        Please 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

        A 1 Reply Last reply Reply Quote 0
        • A
          admin @Sukhwant280 last edited by

          Hi @Sukhwant280

          1. 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

          S 1 Reply Last reply Reply Quote 0
          • punit
            punit @admin last edited by

            @admin When is the next release planned ?

            A 1 Reply Last reply Reply Quote 0
            • A
              admin @punit last edited by

              HI @Ashok We will update you on this we appreciate your patience.

              punit 1 Reply Last reply Reply Quote 0
              • punit
                punit @admin last edited by

                @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.

                A 1 Reply Last reply Reply Quote 0
                • A
                  admin @punit last edited by

                  HI @Ashok We are working on this on priority and this will be provided in next release.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sukhwant280 @admin last edited by

                    @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)
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Sukhwant280 @Sukhwant280 last edited by

                      @admin

                      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

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        admin @Sukhwant280 last edited by

                        HI @Sukhwant280 Currently we dont provide that functionality.

                        1 Reply Last reply Reply Quote 0
                        • S
                          Shubham009 @admin last edited by

                          @admin any update on it

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            admin @Shubham009 last edited by

                            HI @Shubham009 Currently we dont have any update on it.

                            1 Reply Last reply Reply Quote 0
                            • A
                              azkhan @azkhan last edited by

                              @azkhan Any update on this ? @admin

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                admin @azkhan last edited by

                                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

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  Deb88 @admin last edited by

                                  @admin hi , websocket 2 is not working , just stuck at ''on open
                                  Attempting to resubscribe/reconnect...''

                                  D A 2 Replies Last reply Reply Quote 0
                                  • D
                                    Deb88 @Deb88 last edited by

                                    @Deb88 never mind , got it working

                                    J A 2 Replies Last reply Reply Quote 0
                                    • J
                                      J88913 @Deb88 last edited by

                                      @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'

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        atif27khan @Deb88 last edited by

                                        @Deb88 buddy did you found solution for this

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          atif27khan @Deb88 last edited by

                                          @Deb88 duddy can you tell me how can solve my this problem Attempting to resubscribe/reconnect...

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post