Navigation

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

    How to subscribe to nifty index through websocket

    General Discussion
    5
    18
    213
    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.
    • R
      raoulnair last edited by

      Hi Team

      I want to subscribe to nifty index but not FnO.
      What script should i use for the same.
      I tried with below script combination but not getting any data
      script: 'nse_fo|26000'
      script: 'nse_cm|26000'

      for both of the above script i am getting response as given below
      receiveTick::::: [ { tvalue: '24/02/2021 10:26:20', name: 'tm' } ]

      S 1 Reply Last reply Reply Quote 0
      • S
        Surya 1 @raoulnair last edited by

        @raoulnair As for as I know indicates are not broadcasted via API yet

        James Bond 2 Replies Last reply Reply Quote 0
        • James Bond
          James Bond last edited by James Bond

          Are you using Python SDK ?
          If yes, then you can subscribe to Nifty Index.

          1 Reply Last reply Reply Quote 0
          • James Bond
            James Bond @Surya 1 last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • James Bond
              James Bond @Surya 1 last edited by

              @rajanprabu

              Hello Sir, I think now it's possible to subscribe index through WebSocket. Correct me if I'm wrong.

              Thank you ~

              S 1 Reply Last reply Reply Quote 0
              • S
                Surya 1 @James Bond last edited by

                @James-Bond

                you mean token number 26000 ?? I'm also waiting for open and oi to be broadcasted via web sockets.

                S James Bond 2 Replies Last reply Reply Quote 0
                • S
                  Surya 1 @Surya 1 last edited by

                  @admin

                  Screenshot 2021-02-28 at 14.43.56.png

                  Please remove this time limit for experienced users and enable the reputation system please.

                  James Bond 1 Reply Last reply Reply Quote 0
                  • James Bond
                    James Bond @Surya 1 last edited by James Bond

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • James Bond
                      James Bond @Surya 1 last edited by James Bond

                      @rajanprabu
                      I agree with you.

                      @admin
                      Please remove this limit as we're not able to help other due to this limit.

                      @rajanprabu said in How to subscribe to nifty index through websocket:

                      reputation system please

                      @admin Also enable reputation sys.

                      MikeWood 1 Reply Last reply Reply Quote 0
                      • MikeWood
                        MikeWood @James Bond last edited by

                        @James-Bond Is it possible to subscribe to NIFTYBANK index through python api?

                        S James Bond 2 Replies Last reply Reply Quote 0
                        • S
                          Surya 1 @MikeWood last edited by

                          @vishnuvijayp31

                          I thinks its this entry

                          {"token":"26009","symbol":"BANKNIFTY","name":"BANKNIFTY","expiry":"","strike":"-1.000000","lotsize":"-1","instrumenttype":"","exch_seg":"NSE","tick_size":"-1.000000"}
                          
                          {"token":"26000","symbol":"NIFTY","name":"NIFTY","expiry":"","strike":"-1.000000","lotsize":"-1","instrumenttype":"","exch_seg":"NSE","tick_size":"-1.000000"}
                          
                          1 Reply Last reply Reply Quote 0
                          • James Bond
                            James Bond @MikeWood last edited by James Bond

                            @vishnuvijayp31
                            Yes, it's possible. You'll get LTP through WebSocket

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              Surya 1 @James Bond last edited by

                              @James-Bond

                              Could you please confirm if you are using these tokens 26009 and 26000 for that..

                              James Bond 1 Reply Last reply Reply Quote 0
                              • James Bond
                                James Bond @Surya 1 last edited by

                                @rajanprabu Yes, I'm using same tokens to subscribe index through WS.

                                I'll attach live streaming screenshot tomorrow for further reference.

                                MikeWood James Bond 2 Replies Last reply Reply Quote 0
                                • MikeWood
                                  MikeWood @James Bond last edited by

                                  @James-Bond @rajanprabu
                                  Thank you.

                                  1 Reply Last reply Reply Quote 0
                                  • James Bond
                                    James Bond @James Bond last edited by James Bond

                                    @rajanprabu
                                    Please find attached screenshots for reference:

                                    https://ibb.co/RpvYjBv
                                    https://ibb.co/kBjvbJk

                                    If you have any issue to access WS, let me know.

                                    S S 2 Replies Last reply Reply Quote 0
                                    • S
                                      Surya 1 @James Bond last edited by

                                      @James-Bond Thanks..

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        swarup @James Bond last edited by

                                        @James-Bond I subscribed to nifty 50 and nifty bank but I want to subscribe sensex, nifty pharma, nifty it, nifty metal, so on..
                                        I can't find the token. Please help me.

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