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