ERROR CODE AB1004
-
How to fix this error
-
Hi @roiw1083
Pls attach error screenshot along with description
-
Request: {'exchange': 'NSE', 'symboltoken': '10986', 'interval': 'FIVE_MINUTE', 'fromdate': '2026-01-02 09:15', 'todate': '2026-01-02 10:30'},
Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
kindly let me know how to fix this
ERROR CODE - AB1004 -
[E 260106 11:13:55 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData. Error: Something Went Wrong, Please Try After Sometime. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.198.198.198', 'X-MACAddress': 'b5:b5:b5:b5:b5:b5', 'Accept': 'application/json', 'X-PrivateKey': 'XXXXXX', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NFO', 'symboltoken': '119475', 'interval': 'FIVE_MINUTE', 'fromdate': '2026-01-05 09:15', 'todate': '2026-01-06 11:13'}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}Timestamp: 06-Jan-2026 11:13:55
Inputs:
NATIONALUM27JAN26335CE
2026-01-05 09:15
2026-01-06 11:13 -

Please let me know what might be the problem.
-
Hi @rvrao1415
Error is pretty clear. Please do check date & time format in request. Refer below doc for sending appropriate data format
-
Hi @admin can you please share what's wrong with my inputs? I get the same error.
[E 260107 09:21:35 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData.
Error: Something Went Wrong, Please Try After Sometime.
URL: https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData,Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': 'XXXXXXXX', 'X-MACAddress': 'XXXXXXXXXX', 'Accept': 'application/json', 'X-PrivateKey': 'XXXXXX', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NFO', 'symboltoken': '123274', 'interval': 'FIVE_MINUTE', 'fromdate': '2026-01-06 09:15', 'todate': '2026-01-07 09:20'}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}