Navigation

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

    Getting error AB1004

    Python SDK
    0
    5
    38
    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.
    • C
      chiraggarg1702 last edited by

      Hi,
      I just opened a new account and got the access of the Smart API. When hitting the "GetCandleData" I am always getting error AB1004 for any frequency. Can you please let me know what can be done to resolve it?

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

        Hi @chiraggarg1702 AB1004 means "Something Went Wrong, Please Try After Sometime". While hitting "GetCandleData" confirm request format passed correctly.

        Sample Request Format:
        {
        "exchange": "NSE",
        "symboltoken": 13270,
        "interval": "ONE_MINUTE",
        "fromdate": "2024-08-09 09:15",
        "todate": "2024-08-09 15:30"
        }
        Still you face the issue kindly share the details to investigate.

        Regards,
        SmartAPI Team.

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

          @Moderator_3 PFB the request and response. Also I tried to test with multiple frequencies like ONE_MINUTE, ONE_DAY etc but always the same response:

          Request: {'exchange': 'NSE', 'symboltoken': '1594', 'interval': 'ONE_HOUR', 'fromdate': '2024-08-11 08:16', 'todate': '2024-08-11 07:16'},

          Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

          M 2 Replies Last reply Reply Quote 0
          • M
            Moderator_3 @chiraggarg1702 last edited by Moderator_3

            Hi @chiraggarg1702 Date format time passed wrongly from date time should be less than to date time. Kindly check request from your end and you will get the resposne.

            Regards,
            SmartAPI Team.

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

              @chiraggarg1702 said in Getting error AB1004:

              11

              Kindly check the fromdate and todate.
              fromdate should be lesser than todate.

              Regards,
              SmartAPI Team.

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