@abinayakj Currently, api key cannot be changed or deleted, however app details can be modified.
Group Details Private
SmartAPI Group
Member List
-
RE: Unable to remove app details in SmartAPIposted in Bugs
-
RE: RuntimeError: Order API error for SENSEX26MAY76400CE: Couldn't parse the JSON response received from the server: b''posted in Python SDK
@loki your API request snippet must be sending some incorrect data.
-
RE: Can I get previous day's order history through API?posted in General Discussion
@subhash_indian No. Order book is flushed before the start of the next trading day. Behaviour is similar to the orders page you see on the app.
-
RE: SmartApi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'posted in Python SDK
@deeeepak Unfortunately, we cannot help you in the debugging / improvement of the code.
Request you to take help from a professional developer for the same. -
RE: Inconsisten historic dataposted in Python SDK
@virendramatic There has been no issue with the historical data api in recent past. Can you share your api request snippet for analysis?
-
RE: LTP ISSUEposted in Python SDK
@raman12 You can use market data API to get LTP.
Feed token is used in websocket and not in standard APIs. -
RE: how to create secret keyposted in General Discussion
@bhushank Secret key is created along with API key. You need to create an API key to get a secret key.
-
RE: SmartApi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'posted in Python SDK
@deeeepak Some more details
(angelone) [ec2-user@ip-172-111-111-111 angelone]$ pip list installed Package Version ------------------ --------- attrs 23.1.0 autobahn 23.6.2 Automat 22.10.0 certifi 2023.5.7 cffi 1.15.1 charset-normalizer 3.1.0 constantly 15.1.0 contourpy 1.3.3 cryptography 43.0.1 cycler 0.12.1 fonttools 4.61.1 hyperlink 21.0.0 idna 3.4 incremental 22.10.0 isodate 0.6.1 jwt 1.4.0 kiwisolver 1.4.9 logzero 1.7.0 matplotlib 3.10.8 mplfinance 0.12.10b0 numpy 2.4.0 packaging 25.0 pandas 2.3.3 pandas-ta-classic 0.3.59 pillow 12.1.0 pip 25.3 pycparser 2.21 pycryptodome 3.23.0 pyotp 2.8.0 pyparsing 3.1.0 python-dateutil 2.8.2 pytz 2023.3 rdflib 6.3.2 rdflib-jsonld 0.6.2 requests 2.31.0 setuptools 80.9.0 simplejson 3.19.1 six 1.16.0 smartapi-python 1.4.8 Twisted 22.10.0 txaio 23.1.1 typing_extensions 4.6.3 tzdata 2025.3 urllib3 2.0.3 websocket-client 1.8.0 wheel 0.45.1 zope.interface 6.0 -
SmartApi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'posted in Python SDK
Hi Team,
Can you please check the error below, where the SmartConnect Python SDK is not able to handle the response from the server?
Tue, 02-Jun 14:56:06 COFORGE ------------------------------------------------------------------------------------------------------------------------------------------------------ Traceback (most recent call last): File "/home/ec2-user/angelone/lib64/python3.11/site-packages/SmartApi/smartConnect.py", line 230, in _request data = json.loads(r.content.decode("utf8")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ec2-user/angelone/top_gainers_losers.py", line 429, in <module> hist_data = smartApi.getCandleData({"exchange": "NFO","symboltoken": str(opt_token),"interval": "FIVE_MINUTE","fromdate":fromdate ,"todate": todate}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ec2-user/angelone/lib64/python3.11/site-packages/SmartApi/smartConnect.py", line 465, in getCandleData getCandleDataResponse=self._postRequest("api.candle.data",historicDataParams) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ec2-user/angelone/lib64/python3.11/site-packages/SmartApi/smartConnect.py", line 263, in _postRequest return self._request(route, "POST", params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ec2-user/angelone/lib64/python3.11/site-packages/SmartApi/smartConnect.py", line 233, in _request raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format( SmartApi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate' -
RE: Historical Data of nifty 50 tokenposted in Python SDK
@rathodjatin76 @archana If you want to get the data for the NIFTY 50 token, you can get the OLHCV of the index.
If you are wanting the data of the Nifty 50 futures, you unfortunately might not get it, as the data of expired contracts is not stored.Symbol token for NIFTY 50 index = 99926000