Issue with getLTP for Nifty/Banknifty
-
@admin
Getting 0 value for open, low & high in both nifty & banknifty.Attaching response FYR.
{
"exchange": "NSE",
"tradingsymbol": "BANKNIFTY",
"symboltoken": "26009",
"open": 0,
"high": 0,
"low": 0,
"close": 38712.45,
"ltp": 39036.05
}{
"exchange": "NSE",
"tradingsymbol": "NIFTY",
"symboltoken": "26000",
"open": 0,
"high": 0,
"low": 0,
"close": 16983.55,
"ltp": 17121.3
} -
@admin
I try many times to get LTP data but it's through error.{"status":"success","http_code":500,"http_error":"Syntax error or empty or invalid parameter pass","response_data":null}
Do you have any solutions?
-
Hi @Ananth, this is a known issue in getLTP API call for nifty and banknifty indices. Request you to please establish a websocket connection to get this information.
Documentation here - https://smartapi.angelbroking.com/docs/WebSocket2
User guide - https://smartapi.angelbroking.com/topic/1861/user-feedback-websocket-2-0-beta-rollout-python-language