standalone java program login process


Kindly anyone give me a sample to login using standalone java program which will not have any browser interface .
  • sivadorai
    KiteConnect kiteSdk = new KiteConnect("API KEY");
    kiteSdk.setUserId("USER ID");
    User user = kiteSdk.generateSession("REQ TOKEN","SECRET");

    Still the Req token required browser flow, I'm also wondering how to generate Req token programatically, couldnt find any in API documentation.
  • tahseen
    As per regulation it is not allowed to allow fully automatic trading. And that is why Zerodha cannot provide API for request token. Not that Zerodha cannot provide but it is bound by regulation
  • sujith
    You will need to use Webview inside your app.
Sign In or Register to comment.