Getting error AB1004
-
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? -
@chiraggarg1702 said in Getting error AB1004:
11
Kindly check the fromdate and todate.
fromdate should be lesser than todate.Regards,
SmartAPI Team. -
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. -
@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}
-
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.