Need assistance on WebSocket integration.

Currently, our strategy relies on the alerts API to compare the Last Traded Price (LTP) with the first candle's High in order to trigger buy or sell actions. 

However, due to limitations associated with using alerts, we aim to transition towards WebSocket integration. If anyone have a template code for comparing the LTP against our specified parameter and to store the same in DB or temp variables in Python, it would be highly helpful for us to proceed further.

Else, can someone please provide your inputs on how to bring on (implementing) this functionality?

Regards

Archana

2
10 replies