AB2001 while fetching historical candle data
-
payloadCandleReq={'symbol':"SBIN-EQ", 'symboltoken': '3045', 'interval':'THIRTY_MINUTE', 'fromdate': "2021-04-01 9:15", 'todate': "2021-04-15 3:30"} payload_req=json.dumps(payloadCandleReq) conn.request("POST", "/rest/secure/angelbroking/historical/v1/getCandleData", payload_req, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
Now with this i get the error-
{"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}
What is wrong in this?
-
Hi @PandaTrade please try below piece of code.
{
"exchange":"NSE",
"symboltoken":"3045",
"interval": "ONE_MINUTE",
"fromdate":"2021-04-19 09:15",
"todate":"2021-04-19 15:30"
} -
payloadCandleReq={'exchange': 'NSE', 'symbol':"SBIN-EQ", 'symboltoken': '3045', 'interval':'ONE_MINUTE', 'fromdate': "2021-04-19 9:15", 'todate': "2021-04-19 3:30"} payload_req=json.dumps(payloadCandleReq)``` Still i get the same error.?
-
@admin what does that mean?
i am able to get the output for other API though. -
Hi @PandaTrade you have not passed exchange.
-
Hi @PandaTrade we are testing from our end.
-
@admin any update
-
@admin still getting the same error
-
Hi @PandaTrade can you try now we are able to get the data.
-
@admin Any update on this?