Non Secure Websocket URL Decommissioned


  • Dear SmartAPI users,

    As highlighted long back in a forums post
    We have decommissioned the non secure URL for websocket streaming. Please use the secure connection url for your needs as mentioned in the linked post.

    From: ws://smartapisocket.angelone.in/smart-stream
    To: wss://smartapisocket.angelone.in/smart-stream

    Library Updates:
    We're excited to announce that our official SmartAPI libraries for Python, Node.js, and Java have been updated to accommodate this change. These updated libraries have undergone thorough testing to ensure seamless integration with the new WebSocket URL

    Action Required for Library Users:
    The updated libraries are available on our GitHub repository. We kindly request that all library users update to the latest version to align with the new WebSocket URL.

    Action Required for Direct Connections:
    For users who connect directly to the SmartAPI without using a library, you will need to update your code to use WebSocket Secure (WSS) instead of WebSocket (WS). This change is essential for maintaining a secure connection.

    Thank you for choosing SmartAPI for your trading journey.

    Thank you.

    Regards
    SmartAPI Team


  • Hello @poorna,
    we have had already updated the SDK long time back, so if you're using a version installed after September 2023 it is already handled. In any case we'd advise you to use the latest SDK to benefit from all the features and security patches.

    Thank you.

    Regards
    SmartAPI Team


  • @Moderator_1 Is it need pip update, have error on SmartApi.smartwebsocketV2
    Pls advice, I don't know what to do