Websocket streaming or getLtp function??
-
I wanted to know if getLtp function and Websocket Streaming of ltp data is different in efficiency or not. Which is more efficient and functional for live algo trading?
Please let me know as I am a beginner in this space.
Thanks in advance. -
Hi @sangita_al
Apologies for delayed response.
Both Websocket streaming and getLTPdata API are efficient and functional.
GetLTPdata API can help retrieve LTP quotes for one or more instruments which presents LTP, OHLC values and so. While Websocket streaming can provide more market value as such LTP, 52 week high/low, Best five values and so
According to the business requirement, the functionalities can be implemented.
Ref:
https://smartapi.angelbroking.com/docs/Instruments
https://smartapi.angelbroking.com/docs/WebSocket2Thanks & Regards,
SmartAPI team