Navigation

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

    How do I get historical Index Data for NIFTY/SENSEX?

    General Discussion
    4
    22
    540
    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
      Shrinivas1000 @namit last edited by

      @namit Even I am waiting.

      Smartapi is very poor in updates and punctuality.

      Too poor.

      1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 last edited by

        Hi all,

        Apologies for delayed response.
        We have recently started providing the index data.
        Kindly reverify for the same if the issue still persists

        Thanks & Regards,
        SmartAPI team

        C 1 Reply Last reply Reply Quote 0
        • C
          coolankurmahe @Moderator_2 last edited by

          @Moderator_2 : Hi historical api for nifty50 doesn't work.
          Please let me know which token should be used ? or the api is down?
          i tried 2 and 26000 both , but doesn't work.
          I will have to shift to another platform for algo trading if it doesn't work, since it is super important for me for options backtesting

          M 1 Reply Last reply Reply Quote 1
          • M
            Moderator_2 @coolankurmahe last edited by

            Hi @coolankurmahe

            Nifty 50 token is 99926000. Kindly reverify on the Historical API with the proper token.
            Please refer our instrument json file for the same.
            https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

            {"token":"99926000","symbol":"Nifty 50","name":"NIFTY","expiry":"","strike":"0.000000","lotsize":"1","instrumenttype":"AMXIDX","exch_seg":"NSE","tick_size":"0.000000"}

            Regards,
            SmartAPI Team

            L 1 Reply Last reply Reply Quote 0
            • C
              coolankurmahe last edited by

              @Moderator_2 Hi Thanks for reply. It worked to fetch Nifty50 data.
              Can you also write the token for Bank Nifty and other Nifties since it quite hard to find in file.
              Also, please tell if we can get the historical data for expired options for Nifty.
              example:If I have backtest Nifty50 along with its derivatives i.e Options for last 1 year, I will need historical Nifty Option data for last 1 year. Is it possible ?
              If yes, how to get symbol tokens for expired contracts ?

              M 1 Reply Last reply Reply Quote 0
              • M
                Moderator_2 @coolankurmahe last edited by

                hi @coolankurmahe

                Apologies for the delayed response
                Please save and refresh the everyday file with below curl. The symbols of indices can be fetched by searching as start of 999. [Instance: Banknifty - 99926009]
                curl -X GET "https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json" > symbol1.txt
                Also Kindly note, Currently we are not providing data for expired contracts.

                Regards,
                SmartAPI team

                1 Reply Last reply Reply Quote 0
                • L
                  Linux Smiths @Moderator_2 last edited by

                  @Moderator_2 I'm able to fetch historical data for NIFTY50 and other indices, but the volume comes as 0. Is this something you are fixing?

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Moderator_1 @Linux Smiths last edited by

                    Hello @Linux-Smiths,

                    We provide volume data for individual scrips. But in the case of NIFTY/ SENSEX, i.e. indices, it is not available as Indices are not traded on NSE/BSE. If you check for specific contracts with strike prices and expiry dates, you'll be able to get it.

                    Please let us know if you need help with anything else.

                    Thank you.

                    Regards
                    SmartAPI Team

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      Linux Smiths @Moderator_1 last edited by

                      @Moderator_1 thanks, I understand your point, but I guess what I am looking for is "shares traded" as shown by NSE (https://www.nseindia.com/reports-indices-historical-index-data) for the indices. I think that'd be a more useful value for volume than 0.
                      Thanks btw, rest of the APIs work great!

                      1 Reply Last reply Reply Quote 0
                      • N
                        Nelsonfahey last edited by

                        I was searching for ways to get historical index data for Nifty and Sensex when I stumbled upon this gem of an article! Thanks for the clear guide. By the way, if you're up for another kind of data challenge, check out the online game Slope. It's like navigating through market trends—fast, unpredictable, and incredibly addictive!

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