Hi, It is somewhat expensive to keep calling the positions/trades APis every few seconds/minutes. Kiteweb seems to be streaming it through a net socket. I wonder whether you can provide the positions & P/L info over a socket stream... This will be far less expensive and effective, both for single user as well as multiple users. Please share your thoughts.
Hi @ramatius, We don't stream positions data over websockets. We use the same APIs what Kite Connect users are offered. P&L displayed is being calculated based on incoming ticks. Websockets is a bad idea because in some cases the client will never know that it has not received data.
Yes, for a client, socket is a not a good idea. I was more coming from an automated system that monitors the positions & P/L for auto-decisions, especially across several users.
Today we are using the APIs and live ticks to do this, but making HTTP call for every user every few sec/min is expensive than efficient socket(s).
We don't stream positions data over websockets. We use the same APIs what Kite Connect users are offered.
P&L displayed is being calculated based on incoming ticks.
Websockets is a bad idea because in some cases the client will never know that it has not received data.
Today we are using the APIs and live ticks to do this, but making HTTP call for every user every few sec/min is expensive than efficient socket(s).