Not able to get LTP price from kite.quote function

sjha_kumar
Hi,
I am using below function to capture last trade price for any stocks. But since today it is showing error. Please help.
Since morning to till now not able to get the correct price.
I am using python2.7

Function using
quoteprice = kite.quote('NFO', 'NIFTY18MARFUT')
price= quoteprice['last_price']
print(price)

Error:
quoteprice = kite.quote('NFO', 'NIFTY18MARFUT')
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 501, in quote
return self._get("market.quote", {"exchange": exchange, "tradingsymbol": tradingsymbol})
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 593, in _get
return self._request(route, "GET", params)
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 684, in _request
raise(exp(data["message"], code=r.status_code))
kiteconnect.exceptions.DataException: Exception fetching quote
Sign In or Register to comment.