Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. rakeshkr114
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 4
    • Best 0
    • Groups 0

    rakeshkr114

    @rakeshkr114

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    rakeshkr114 Unfollow Follow

    Latest posts made by rakeshkr114

    • m2mrealized had incorrect data in the response of smartApi.rmsLimit()['data']

      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?

      posted in Python SDK
      R
      rakeshkr114
    • Websocket - Handshake status 429 Too Many Requests

      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

      36f127cc-1feb-452a-9c60-aa30267f095e-image.png

      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

      posted in Python SDK
      R
      rakeshkr114
    • Error in Historical API

      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)"))

      posted in General Discussion
      R
      rakeshkr114
    • Websocket connection was forcibly closed by the remote host.

      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

      posted in General Discussion
      R
      rakeshkr114