Kite login with 2FA, is mandatory because of SeBI regulations as well for user account security. User are forced to login manually with 2FA. But at the same time, it is NOT true for websocket. Websocket connection can be created when Kite confirms that request has been made by active Kite connect subscriber. Kite connect subscriberr can get Live quote data and websocket connection with API key and api secrete. Kite subscriber can make quote related api and websocket connection programmatically. Kite connect subscriber, who has not subscribed to historical data, won't miss quotes due to late login. Zerodha can even provide live data and historical data to the user not having Zerodha trading/DMaT account.
Summery : Any quote related apis(/quote/*) and web socket connection can be accessed with API key and API secrets WITH OUT manual 2FA. Order related apis( /order/*) need manual 2FA.
For all the APIs you need a valid access token to access data. It is same for HTTP calls and Websocket API. You can know more about it by reading the API documentation.
Sujith, I understand, currently It is implemented like that. 2FA is giving lots issues of for those who use Kite Connect. AT least if you can plan for another constructor for WebSocket which takes API key and API secret would be lots of beneficial for API users like me. Daily login and 2FA mandated by exchange/SeBI for /Order/* apis only. Can you please check the feasibility of having another constructor of Websocket taking API key and secrete for future release.
You can know more about it by reading the API documentation.
I understand, currently It is implemented like that. 2FA is giving lots issues of for those who use Kite Connect. AT least if you can plan for another constructor for WebSocket which takes API key and API secret would be lots of beneficial for API users like me. Daily login and 2FA mandated by exchange/SeBI for /Order/* apis only. Can you please check the feasibility of having another constructor of Websocket taking API key and secrete for future release.
Thanks in advance.