Navigation

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

    Getting AB1004 for all scrips

    General Discussion
    0
    6
    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.
    • R
      ravikatha last edited by

      Hello Moderator

      I am getting an AB1004 error while querying for any symbol for historical data. My client code is R16888. Can you please check if the API is functional and active for my account?

      Mnagesh E 2 Replies Last reply Reply Quote 0
      • Mnagesh
        Mnagesh @ravikatha last edited by

        @ravikatha I am also getting this error

        Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

        1 Reply Last reply Reply Quote 0
        • E
          excelman11 @ravikatha last edited by

          @ravikatha I am also receiving the same error.

          [E 240511 11:41:17 smartConnect:243]
          
          Error occurred while making a POST request to https://apiconnect.angelbroking.com/rest/secure/angelbroking/historical/v1/getCandleData. Error: Invalid date or time format. 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': '30:03:c8:68:51:0a', 'Accept': 'application/json', 'X-PrivateKey': 'B4aGvizX', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NSE', 'symboltoken': '1333', 'interval': 'ONE_MINUTE', 'fromdate': '2024-05-10 08:00 08:00', 'todate': '2024-05-10 17:00 17:00'}, Response: {'message': 'Invalid date or time format', 'errorcode': 'AB13000', 'status': False, 'data': None}
          

          Despite using try and except in python, I am still unable to deal with this error.

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

            Hello @excelman11
            Could you please tell like which segments you are looking on Since it's working as expected
            Regards,
            SmartAPI Team

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

              @Moderator_3 NIFTY index

              Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

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

                Hello @Mnagesh
                Please use the below request on getcandleData api,it's working as expected.

                {
                	"exchange":"NSE",
                	"symboltoken":"99926009",
                	"interval":"ONE_DAY",
                	"fromdate":"2024-05-13 15:15",
                	"todate":"2024-05-14 15:31"
                }
                

                Regards,
                SmartAPI Team

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