Navigation

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

    BankNifty index Historical Data not available

    General Discussion
    0
    9
    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.
    • L
      laskshmi last edited by

      Hi @admin,

      Currently i am unable to get any response from server for Historical data API when using the below request to fetch Banknifty or Nifty index data.

      {
          "exchange": "NSE",
          "symboltoken": "26009",
          "interval": "ONE_MINUTE",
          "fromdate": "2023-01-03 09:15",
          "todate": "2023-01-03 09:30"
      }
      

      RESOPNSE:

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": null
      }
      

      I did see many post having the same question, but too old back in 2021. So Just wanted to confirm if we have the historical data for Indices.

      Thank you 😊😊

      A M 2 Replies Last reply Reply Quote 1
      • A
        Amit Limbasia last edited by

        Try this it worked for me
        Thanks

        1. for NIFTY :
          {
          "exchange":"NFO",
          "symboltoken":"NIFTY",
          "interval":"ONE_HOUR",
          "fromdate":"2023-01-01 09:00",
          "todate":"2023-03-31 15:31"
          }

        2. For Bank Nifty :
          {
          "exchange":"NFO",
          "symboltoken":"BANKNIFTY",
          "interval":"ONE_HOUR",
          "fromdate":"2023-01-01 09:00",
          "todate":"2023-03-31 15:31"
          }

        A R 2 Replies Last reply Reply Quote 0
        • A
          Amit Limbasia @laskshmi last edited by

          @laskshmi

          Index Historical Data Works for me

          Ref : https://smartapi.angelbroking.com/docs/Historical
          use Body as follows:

          1. for Nifty

          {
          "exchange":"NFO",
          "symboltoken":"NIFTY",
          "interval":"ONE_HOUR",
          "fromdate":"2023-01-01 09:00",
          "todate":"2023-03-31 15:31"
          }

          1. for BANKNIFTY
            {
            "exchange":"NFO",
            "symboltoken":"BANKNIFTY",
            "interval":"ONE_HOUR",
            "fromdate":"2023-01-01 09:00",
            "todate":"2023-03-31 15:31"
            }
          1 Reply Last reply Reply Quote 0
          • M
            Moderator_2 @laskshmi last edited by

            Hi @laskshmi

            Apologies for delayed response.
            We have started providing Historical data for indices.
            Kindly reverify.

            Thanks & Regards,
            SmartAPI team

            A 1 Reply Last reply Reply Quote 0
            • A
              Aditya Gaurav @Amit Limbasia last edited by

              @Amit-Limbasia

              Hi Amit

              I tried using your payload but it didn't seem to work.

              Screenshot 2024-02-03 at 7.07.15 PM.png

              Please let me know if I am missing something.

              1 Reply Last reply Reply Quote 1
              • A
                Aditya Gaurav @Moderator_2 last edited by

                @Moderator_2

                I tried the historical data fetch for BANKNIFTY but I am still not getting a success response.

                Screenshot 2024-02-03 at 7.10.55 PM.png

                Please let me know if I am doing something wrong.

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

                  Hi @Aditya-Gaurav

                  Apologies for delayed response.
                  Kindly reverify on the token passed. Index token for Banknifty has be pushed as "99926009". We are able retrieve the data for the specified date.

                  Thanks & Regards,
                  SmartAPI team

                  A 1 Reply Last reply Reply Quote 0
                  • R
                    Rishab @Amit Limbasia last edited by

                    historicParam={
                    "exchange": "NSE",
                    "symboltoken": "26009",
                    "interval": "ONE_MINUTE",
                    "fromdate": "2021-02-08 09:00",
                    "todate": "2021-02-08 09:16"
                    }

                    THIS IS FOR BANKNIFTY

                    1 Reply Last reply Reply Quote 0
                    • A
                      Aditya Gaurav @Moderator_2 last edited by

                      Hi @Moderator_2

                      Thank you for the response.

                      In the Instrument file, for name == 'BANKNIFTY', there were two rows. One with blank InstrumentType and the other one with 'AMXIDX' as it's value. I was passing the token from the first one. But in documentation or somewhere it should be mentioned that if we want index then which one to consider.

                      Thanks and Regards,
                      Aditya

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