Navigation

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

    Token Value for Indices

    General Discussion
    5
    15
    389
    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
      Abhishesh88 @admin last edited by

      @admin I want to get Token for Indices so that, i can pull data from socket for each token that is required to call socket API. Can you tell me how to find token for Indices name. I am sure it is available in your OpenAPIScriptMaster, but we are not able to find way to find token for above Indices.

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

        HI @Abhishesh88 Pass task as "sfi" for subscribing index data.
        please go through task feed in below doc:
        https://smartapi.angelbroking.com/docs/WebSocketStreaming

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

          @admin what should be token value for nifty50 and banknifty. In OpenAPIScriptMaster, I can find nifty50 but exch_seg:cds. Is this correct? Basically I want to get streaming data for nifty50 index and near month nifty 50 future contract. It will be of great help if you can share token for both.

          D 1 Reply Last reply Reply Quote 0
          • D
            Diljeet @fcoder last edited by

            @fcoder
            Nifty 50 and Bank nifty indices code are nse_cm|26000&nse_cm|26009 repsectively.
            I found it in openAPIScriptMaster.

            F 1 Reply Last reply Reply Quote 1
            • F
              fcoder @Diljeet last edited by

              @mihirk Thanks Mihirk. However, when I try to stream for 26000, it only provide ltp,prev close,net chage, chang per. No high low value. For e.g. [{"cng":"75.05","e":"nse_cm","c":"15885.15","nc":"00.47","name":"sf","ltp":"15960.20","tk":"26000","ltt":"NA"}. Even ltt is NA. Do you have any idea how to get ohlc with timestamp for 26000.

              D 1 Reply Last reply Reply Quote 0
              • D
                Diljeet @fcoder last edited by

                @fcoder nope. I did not use those and hence, I did not check.

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

                  @admin what will be token for BSE SENSEX to get LTP using API

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

                    HI @Abhishesh88 You can get ltp for sensex you will get it through passing task as "sfi" in websocket.

                    1 Reply Last reply Reply Quote 0
                    • K
                      kishores last edited by

                      {"token":"99926037","symbol":"Nifty Fin Service","name":"NIFTY FIN SERVICE","expiry":"","strike":"0.000000","lotsize":"0","instrumenttype":"AMXIDX","exch_seg":"NSE","tick_size":"0.000000"}

                      1 Reply Last reply Reply Quote 0
                      • K
                        kishores last edited by

                        {"token":"99926037","symbol":"Nifty Fin Service","name":"NIFTY FIN SERVICE","expiry":"","strike":"0.000000","lotsize":"0","instrumenttype":"AMXIDX","exch_seg":"NSE","tick_size":"0.000000"}

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