Navigation

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

    Unable to fetch the symbol token for sensex.

    General Discussion
    2
    6
    56
    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.
    • K
      keval.promact last edited by

      I want to display the latest value of Sensex and Nifty in my app. I am calling all instrument JSON file to get the symbol token and then I am using those symbol tokens in the web socket.

      For nifty the symbol token is 26000 and I am passing nse_cm|26000 in the web socket to fetch the value and I am getting it correctly.

      But for Sensex, I am unable to get the symbol token. @admin can you please share the symbol token of Sensex or any other way to display the Sensex price in my app. I think I am pretty sure that all instrument JSON file doesn't provide the symbol token for Sensex.

      I am using this link to get the symbol token of all the instruments.

      https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @keval.promact last edited by admin

        HI @keval-promact We only provide the data for the symbols which are present in our instrument json.

        K 1 Reply Last reply Reply Quote 0
        • K
          keval.promact @admin last edited by keval.promact

          @admin then how you guys are showing the Sensex values in your portal and mobile app?

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @keval.promact last edited by

            HI @keval-promact Pass task as "sfi" and token as "SENSEX".

            K 1 Reply Last reply Reply Quote 0
            • K
              keval.promact @admin last edited by

              @admin thanks this is working fine when the market is live and the socket is connected. How will I be able to fetch the last value of Sensex when the market is not live?

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @keval.promact last edited by

                HI @keval-promact You can save it from your end by writing your own piece of code.

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