On executing the instruments() method - I received the following error:
Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 376, in instruments return self._parse_csv(self._get("market.instruments", params)) File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 421, in _parse_csv reader = csv.reader(StringIO.StringIO(data.strip())) AttributeError: 'dict' object has no attribute 'strip'
I have seen a similar issue. From my understanding, the URL configured against the "market.instruments" property is currently not exposed by the API. You can either download the full instrument csv as explained in the api from ""https://api.kite.trade/instruments?api_key=xxx"" with curl or wget, or use urllib.urlretrieve and then parse the csv.