Important Update: SmartAPI WebSocket URL Change - Action Required by November 30th, 2023


  • Dear SmartAPI Users,

    We hope this message finds you well. We have an important update to share regarding the WebSocket URL for the SmartAPI.

    Change in WebSocket URL:

    We are enhancing the security of your market data connections and safeguarding your information by updating the WebSocket URL for SmartAPI market data. The change is as follows:

    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 now 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.

    Cut-Off Date: November 30th, 2023
    Please note, the old WebSocket URL (ws://smartapisocket.angelone.in/smart-stream) will cease to operate after November 30th, 2023. It is vital to transition to the new URL (wss://smartapisocket.angelone.in/smart-stream) before this date to prevent any disruption in service.

    For those who connect directly, we recommend preparing your code for the transition by switching to WSS as soon as the updated libraries are released.

    Clarification for Non-WebSocket Market Data Users:
    Please note that this update specifically applies to users who connect to SmartAPI for market data using WebSocket technology. If you do not use WebSocket for market data, this change does not impact your current setup. Your existing method for retrieving market data remains unaffected.

    We appreciate your patience and cooperation during this transition. The security and reliability of your connection to SmartAPI remain our top priorities.

    If you have any questions or require assistance, please don't hesitate to contact our support team. We are here to help and ensure a smooth transition for all users.

    Thank you for choosing SmartAPI for your trading needs. We look forward to providing you with an even more secure and efficient trading experience.

    Regards
    The SmartAPI Team