Hello Sai,
"i am planning to stream the data using mutliple api and 3 websockets for each api as per kite.is it possible??"
I am afraid I am not clear. As per the Kite API documentation, we can have 3 WebSockets open at the same time for the same API Key (1 user application). Each WebSocket can handle up to 3000 Instruments.
You can subscribe for up to 3000 instruments on a single WebSocket connection and receive live quotes for them. Single API key can have upto 3 websocket connections.
Do you mean multiple "API Keys"? That is, multiple Applications in the same account? Or single applications in multiple Zerodha Accounts?
In either case, there are complications - You will need a KiteConnect instance for each API Key. They KiteConnect object uses OkHTTP3 internally and will need to maintain state for it's connection. Having multiple instances of KiteConnect is definitely feasible, but you will have to keep them strictly separate.
November 2023