Navigation

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

    Getting AB1004 error while getting historic data for nifty50

    Python SDK
    0
    7
    46
    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
      Kalyan C last edited by

      Hi Team,

      I am unable to get the historical data for Nifty 50 due to the following error: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}.

      Someone please kindly look into it.

      Thanks in advance,
      Kalyan C

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

        I am also observing same error.

        1 Reply Last reply Reply Quote 0
        • S
          Satnam last edited by

          facing the same issue

          1 Reply Last reply Reply Quote 0
          • M
            Moderator_3 @Kalyan C last edited by

            Hello @Kalyan-C
            Could you please share the request packet
            Regards,
            SmartAPI Team

            S 2 Replies Last reply Reply Quote 0
            • S
              Satnam @Moderator_3 last edited by

              @Moderator_3 Since, I am also facing the same issue, can you tell me what exactly the request packet means?

              1 Reply Last reply Reply Quote 0
              • S
                Satnam @Moderator_3 last edited by

                @Moderator_3 The error that I am getting is as mentioned below
                "Error occurred while making a POST request to https://apiconnect.angelbroking.com/rest/secure/angelbroking/historical/v1/getCandleData. Error: Something Went Wrong, Please Try After Sometime. URL: https://apiconnect.angelbroking.com/rest/secure/angelbroking/historical/v1/getCandleData, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': 'cc:48:3a:66:10:f5', 'Accept': 'application/json', 'X-PrivateKey': 'si3I9yTu', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NSE', 'interval': 'ONE_HOUR', 'fromdate': '2023-01-01 09:15', 'todate': '2023-01-02 15:30'}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}"

                M 1 Reply Last reply Reply Quote 0
                • M
                  Moderator_3 @Satnam last edited by

                  Hello @Satnam
                  You are missing to send one param called symbol token so kindly frame your request as mentioned below

                  {
                      "exchange":"NSE",
                      "symboltoken":"99926000",
                      "interval":"ONE_HOUR",
                      "fromdate":"2024-04-01 15:15",
                      "todate":"2024-04-08 15:31"
                  }
                  

                  Regards,
                  SmartAPI Team

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