same for me!
@Moderator_3 can you please look into this?
Posts made by rakeshkr114
-
RE: getCandleData (Historical API) returning HTTP 403 "Access denied because of exceeding access rate" — even on minimal requestsposted in General Discussion
-
RE: GTT createRule and modifyRule throwing message":"no Route matched with those values"posted in General Discussion
@skammari I was facing similar issue with python sdk.
Looks like the gtt api path got prefixed with /gtt-service for /createRule, /modifyRule, /cancelRule which is not being allowed by the server and giving 404 with "no Route matched" error.
If possible, you can try calling with old paths for now until the fix it. It worked for me:'api.gtt.create': ['/rest/secure/angelbroking/gtt/v1/createRule', '/gtt-service/rest/secure/angelbroking/gtt/v1/createRule'],
'api.gtt.modify': ['/rest/secure/angelbroking/gtt/v1/modifyRule', '/gtt-service/rest/secure/angelbroking/gtt/v1/modifyRule'], 'api.gtt.cancel': ['/rest/secure/angelbroking/gtt/v1/cancelRule', '/gtt-service/rest/secure/angelbroking/gtt/v1/cancelRule'], -
RE: GTT orders are failingposted in Python SDK
@admin looks like the gtt api path got prefixed /gtt-service for /createRule, /modifyRule, /cancelRule which is not being allowed by the server and giving 404 with "no Route matched" error. Please look into it if possible. Thanks!
-
GTT orders are failingposted in Python SDK
Hi @admin ,
On call to smartApi.gttModifyRule() method with payload={'id': '8405808', 'symboltoken': '505283', 'exchange': 'BSE', 'price': '1623.80', 'triggerprice': '1631.95', 'qty': '3'}Getting Error:
python3.9/site-packages/SmartApi/smartConnect.py", line 430, in gttModifyRule
return modifyGttRuleResponse['data']['id']
KeyError: 'data'Getting this error from past few days. Same code was working fine before. Please check once?
-
To datetime can't be greater than current datetimeposted in Python SDK
Hi @admin
I am getting error in Historical API with following param even though datetime (2026-02-25 09:41) was less than current datetime (2026-02-25 09:51):{'exchange': 'BFO', 'fromdate': '2026-02-21 09:41', 'interval': 'ONE_MINUTE', 'symboltoken': '1162536', 'todate': '2026-02-25 09:41'}
Error:
{'data': None, 'errorcode': 'AB1012', 'message': "To datetime can't be greater than current datetime", 'status': False}It was working all fine till yesterday! Please check it ASAP!
-
m2mrealized had incorrect data in the response of smartApi.rmsLimit()['data']posted in Python SDK
m2mrealized had incorrect data in the response of smartApi.rmsLimit()['data'].
I have noticed it 2 times now. Sometimes m2mrealized shows incorrect data (6041.0000 which was never the case the whole day).
Timestamp: 20/10/2025 01:09:05 PM
Response:
20/10/2025 01:09:05 PM rmsLimit: {'net': '98713.0225', 'availablecash': '98713.0225', 'availableintradaypayin': '0.0000', 'availablelimitmargin': '0.0000', 'collateral': '0.0000', 'm2munrealized': '0.0000', 'm2mrealized': '6041.0000', 'utiliseddebits': '13158.8975', 'utilisedspan': None, 'utilisedoptionpremium': None, 'utilisedholdingsales': None, 'utilisedexposure': None, 'utilisedturnover': None, 'utilisedpayout': '104754.0225'}Can you please have a look into it?
-
Websocket - Handshake status 429 Too Many Requestsposted in Python SDK
Hi,
I am getting Handshake status 429 Too Many Requests error when I am trying to run two python scripts in parallel. Both of the script uses the same code to make a websocket connection and subscribes with mode 1. Connections are happening all fine in the beginning but after sometime, connections are being closed automatically with below mentioned error. As per the documentation: Each client code (Angel One trading account id) can have up to three concurrent WebSocket connection

With my approach, I am only trying to have 2 WebSocket connection.
Can you please help me with this?Error:
Handshake status 429 Too Many Requests -+-+- {'server': 'nginx', 'date': 'Thu, 29 Aug 2024 04:14:08 GMT', 'content-type': 'text/html;charset=iso-8859-1', 'content-length': '615', 'connection': 'keep-alive', 'x-error-message': 'Invalid Request. Connection Limit Exceeded.', 'cache-control': 'must-revalidate,no-cache,no-store', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'content-security-policy': "default-src 'self';"} -+-+- b'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>\n<title>Error 429 Invalid Request. Connection Limit Exceeded.</title>\n</head>\n<body><h2>HTTP ERROR 429 Invalid Request. Connection Limit Exceeded.</h2>\n<table>\n<tr><th>URI:</th><td>/smart-stream</td></tr>\n<tr><th>STATUS:</th><td>429</td></tr>\n<tr><th>MESSAGE:</th><td>Invalid Request. Connection Limit Exceeded.</td></tr>\n<tr><th>SERVLET:</th><td>org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-5a14e60d</td></tr>\n</table>\n<hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 11.0.15</a><hr/>\n\n</body>\n</html>\n' - goodbye -
Error in Historical APIposted in General Discussion
Hi,
Can you please tell why I was getting the below mentioned error in Historical API? I was getting this error continuously for almost 3 hours(from 23/07/2024 12:12:12 PM to 23/07/2024 03:00:14 PM) even though I did not exceed the rate limit of 3 Request/Second.ERROR:
23/07/2024 12:12:12 PM HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/historical/v1/getCandleData (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0000028F50283EB0>: Failed to resolve 'apiconnect.angelbroking.com' ([Errno 11001] getaddrinfo failed)"))23/07/2024 12:12:13 HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/historical/v1/getCandleData (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0000028F502AC130>: Failed to resolve 'apiconnect.angelbroking.com' ([Errno 11001] getaddrinfo failed)"))
-
Websocket connection was forcibly closed by the remote host.posted in General Discussion
Hi @admin,
Why was my websocket connection closed (in python)? Can you please let me know?
I saw 4 errors in websocket: "Connection closed" around 23/07/2024 12:10:55 PM.
I also observed An existing connection was forcibly closed by the remote host - goodbye around same time.
Error stack:
23/07/2024 12:10:55 PM error in connection: Connection closed
23/07/2024 12:10:55 PM [Errno 11001] getaddrinfo failed - goodbye
23/07/2024 12:10:55 PM error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x0000028F4545FB20>>: _on_close() takes 2 positional arguments but 4 were given
23/07/2024 12:10:55 PM error in connection: Connection closed
23/07/2024 12:10:55 PM [Errno 11001] getaddrinfo failed - goodbye
23/07/2024 12:10:55 PM error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x0000028F4545FB20>>: _on_close() takes 2 positional arguments but 4 were given
23/07/2024 12:10:55 PM error in connection: Connection closed
23/07/2024 12:10:55 PM [WinError 10054] An existing connection was forcibly closed by the remote host - goodbye
23/07/2024 12:10:55 PM error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x0000028F4545FB20>>: _on_close() takes 2 positional arguments but 4 were given
23/07/2024 12:10:55 PM error in connection: Connection closed