Failed to get symbol details
-
@angelbroking @admin @SmartAPI_Angel @StocksDeveloper
While calling getLtpdata api, I'm not able to get some stock details. They give this response.
{
"message": "Failed to get symbol details",
"errorcode": "AB1018",
"status": false,
"data": null
}I want to know the probable reasons behind this response.
-
HI @Sourav You can try with EQ series of instruments form the file.
-
HI @Sourav We are testing it we will update you on this.
-
@admin I have also got this response when I manually change the symbol and token.
{"exchange":"NSE","tradingsymbol":"KOTAKIT","symboltoken":"2632"}
{
"message": "Entered trading symbol and symbol token is mismatch",
"errorcode": "AB1019",
"status": false,
"data": null
}Actual is value of symbol and token.
{"exchange":"NSE","tradingsymbol":"KOTAKIT-BL","symboltoken":"2632"}
And the response is
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": {
"exchange": "NSE",
"tradingsymbol": "KOTAKIT-BL",
"symboltoken": "2632",
"open": 0.0,
"high": 0.0,
"low": 0.0,
"close": 0.0,
"ltp": 0.0
}
} -
HI @Sourav Possibilty for this is :
- Entered token does not matches symbol in instrument file.
- you can check what no of time your are hitting ltp function in 1 sec to fetch the ltp.
-
@admin What it means "breaching the limits"?
I didn't understand. Can you explain a bit more about it? -
HI @Sourav You need to debug the code and check if you are breaching the limits.
-
@admin When I call this api endpoint for all nse stocks. Then approx 300 request giving this error response with "Failed to get symbol details" message.
-
@admin This is my request body.
{
"exchange": "NSE",
"tradingsymbol": "182D010721-TB",
"symboltoken": "2630"}
And api endpoint is:
https://apiconnect.angelbroking.com/order-service/rest/secure/angelbroking/order/v1/getLtpData
-
HI @Sourav please post your request here.