@admin said in Not able to get correct LTP of NIFTY50:
HI @phanideva Passed exchange as NSE.
@admin If I pass NSE I get this error
angel.ltpData("NSE", "NIFTY50", "2")
Out[87]:
{'message': 'Failed to get symbol details',
'errorcode': 'AB1018',
'status': False,
'data': None}
If I pass "CDS" I get below output
angel.ltpData("CDS", "NIFTY50", "2")
Out[88]:
{'status': True,
'message': 'SUCCESS',
'errorcode': '',
'data': {'exchange': 'CDS',
'tradingsymbol': 'NIFTY50',
'symboltoken': '2',
'open': 0.0,
'high': 0.0,
'low': 0.0,
'close': 183.3855,
'ltp': 183.3855}}
It was working yesterday.