Upgraded SmartAPI Libraries to Support WebSocket 2.0 - Python, Java SDK and Node.js Library


  • Release Note for SmartAPI Customers

    We are excited to announce the release of updated SmartAPI libraries that now fully support WebSocket 2.0, further enhancing your trading experience. The latest versions of the SmartAPI Python SDK (1.3.4), SmartAPI Java SDK (2.1.0) and the SmartAPI Node.js Library (1.0.15) incorporate WebSocket 2.0 implementation, ensuring faster market data updates, reduced latency, and improved overall performance.

    Websocket 2.0 Documentation: https://smartapi.angelbroking.com/docs/WebSocket2

    Key Features and Enhancements:

    WebSocket 2.0 Support: With the upgraded SmartAPI libraries, you can now take advantage of WebSocket 2.0, enabling faster real-time data streaming and an enhanced trading experience. WebSocket 2.0 offers improved performance, lower latency, and more efficient data updates.

    Updated Libraries:

    SmartAPI Node.js Library - Version 1.0.15: We have released version 1.0.15 of the SmartAPI Node.js Library, incorporating WebSocket 2.0 support. This update enables Node.js developers to leverage WebSocket 2.0 for real-time data streaming and enjoy improved performance in their trading applications.

    SmartAPI Python Library - Version 1.3.4: We have released version 1.3.4 of the SmartAPI Python Library, incorporating WebSocket 2.0 support. This update enables Python developers to leverage WebSocket 2.0 for real-time data streaming and enjoy improved performance in their trading applications.

    Please upgrade your smartapi-python library using pip, the Python package installer. Here's how you can do it:

    pip install --upgrade smartapi-python
    

    SmartAPI Java SDK - Version 2.1.0: The SmartAPI Java SDK has been updated to version 2.1.0, which includes full support for WebSocket 2.0. Java developers can seamlessly integrate WebSocket 2.0 and leverage its enhanced features in their trading applications.

    Java Example - SmartStreamTickerTest:
    To help you quickly adopt the WebSocket 2.0 functionality, we have prepared a comprehensive Java example. The SmartStreamTickerTest example showcases the implementation of real-time data streaming capabilities using the SmartAPI Java SDK. It provides guidance on how to incorporate WebSocket 2.0 and leverage the enhanced features for a seamless trading experience.

    You can find the Java example code at the following location:
    SmartStreamTickerTest Java Example - GitHub

    We recommend updating your integration to utilize the latest versions of the SmartAPI Python SDK (1.3.4), SmartAPI Java SDK (2.1.0) and the SmartAPI Node.js Library (1.0.15) to fully leverage WebSocket 2.0 and enjoy the improved performance and data streaming capabilities.

    We appreciate your feedback as we strive to provide you with the best trading experience. Should you have any questions or require assistance, please visit the SmartAPI forums, where our support team will be happy to assist you.

    Thank you for choosing SmartAPI. We remain committed to delivering cutting-edge technologies and empowering you with the most advanced trading APIs.

    Happy trading!
    The SmartAPI Team


  • Fetching the full instrument list is not working, https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

    Please resolve this issue ASAP


  • @admin
    I have updated the smartapi (uninstalled first and installed then) but getting the following error while executing:

    No module named 'SmartApi'

    Please help!

    Minakshi Kukreja


  • Hi @admin has anything changed in Historic API? I haven't used it in some time but based on the documentation it should return 30 days of data at a time(for 1 min) and 90 days for 5 mins and so on but I'm only getting 500 data points, even though date range is within the given date range Here is the example code and also screenshot from the documentation

    try:
        historicParam={
        "exchange": "NSE",
        "symboltoken": "3045",
        "interval": "ONE_MINUTE",
         "fromdate": "2023-07-01 09:00", 
         "todate": "2023-07-09 15:29" 
       }
        smartApi.getCandleData(historicParam)
    except Exception as e:
        print("Historic Api failed: {}".format(e.message))
    
    

    Output:
    e04bcfd4-7c17-467b-8065-c96554d3e74a-image.png

    Documentation screenshot:
    a53f16e0-1d84-49fb-8779-af87ec49170f-image.png
    Correct me If im wrong always happy to learn


  • @sekharn said in Upgraded SmartAPI Libraries to Support WebSocket 2.0 - Python, Java SDK and Node.js Library:

    Angel one tech team has done an amazing job this time. The new smart API works like magic, low latency, consistent connection so far, and easy to process web socket ticks. Keep going guys and hope you become the best API offering in India!

    Hi @sekharn Thank you for your positive feedback! We're thrilled that you're enjoying our new websocket and we appreciate your support in our goal to be the best API offering in India.


  • Angel one tech team has done an amazing job this time. The new smart API works like magic, low latency, consistent connection so far, and easy to process web socket ticks. Keep going guys and hope you become the best API offering in India!


  • Hi @PandaTrade , We have released version 1.3.4 of the SmartAPI Python Library, incorporating WebSocket 2.0 support. This update enables Python developers to leverage WebSocket 2.0 for real-time data streaming and enjoy improved performance in their trading applications.

    Please upgrade your smartapi-python library using pip, the Python package installer. Here's how you can do it:

    pip install --upgrade smartapi-python
    

  • @admin said in Upgraded SmartAPI Libraries to Support WebSocket 2.0 - Java SDK and Node.js Library:

    e are excited to announce the release of updated SmartAPI libraries that now fully support WebSocket 2.0, further enhancing your trading experience. The latest versions of the SmartAPI Java SDK (2.1.0) and the SmartAPI Node.js Library (1.0.15) incorporate WebSocket 2.0 implementation, ensuring faster market data updates, reduced latency, and improved overall performance.
    Key Features and Enhancements:
    WebSocket 2.0 Support: With the upgraded SmartAPI libraries, you can now take advantage of WebSocket 2.0, enabling faster real-time data streaming and an enhanced trading experience. WebSocket 2.0 offers improved performance, lower latency, and more efficient data updates.

    what about python libraries.