Getting AB1004 for all scrips


  • 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?


  • 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


  • @Moderator_3 NIFTY index


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


  • @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.


  • @ravikatha I am also getting this error