It looks like you're new here. If you want to get involved, click one of these buttons!
DataException Traceback (most recent call last)~\st\test.py in <module>() 99 #prev_close = 147--> 100 prev_close = kite.quote(exchange1,symbol1)["ohlc"]["close"] 101 ~\AppData\Local\Continuum\anaconda3\lib\site-packages\kiteconnect\__init__.py in quote(self, exchange, tradingsymbol) 499 def quote(self, exchange, tradingsymbol): 500 """Retrieve quote and market depth for an instrument."""--> 501 return self._get("market.quote", {"exchange": exchange, "tradingsymbol": tradingsymbol}) 502 503 def historical(self, instrument_token, from_date, to_date, interval, continuous=False):~\AppData\Local\Continuum\anaconda3\lib\site-packages\kiteconnect\__init__.py in _get(self, route, params) 575 def _get(self, route, params=None): 576 """Alias for sending a GET request."""--> 577 return self._request(route, "GET", params) 578 579 def _post(self, route, params=None):~\AppData\Local\Continuum\anaconda3\lib\site-packages\kiteconnect\__init__.py in _request(self, route, method, parameters) 666 code=r.status_code)) 667 elif exp:--> 668 raise(exp(data["message"], code=r.status_code)) 669 else: 670 raise(ex.GeneralException(data["message"], code=r.status_code))DataException: Exception fetching quote===========
You can check out documentation . In the response, open means open of the day and close is the previous day's close.
I am using this.
prev_close = kite.quote(exchange1,symbol1)["ohlc"]["close"]
But this used to pull errors also. Any suggestions ?
==========
---------------------------------------------------------------------------