Recently I have integrated Kite API's in my nodeJS trading platform. I am facing one issue with the kite integration is, which i am not able to automate
In order to call the Kite API, we need to generate the access token from kite request token (right now, am doing manually)
The request token validity time is very short. As per the kite documentation, am saving the access token and calling the kite API hence it works without any issue.
But the issue is, the access_token also invalidated in some cases so again the above steps which is necessary for kite integration.
So my query is,
Is it possible to automate the entire steps and when the session is invalidated (Kite provides the callback for reinitiating the session using setSessionExpiryHook)?
It is mandatory by the exchange that a trader has to log in manually at least once a day. We don't recommend automating login. An access token generated will remain valid for the whole trading day. If your access token is invalidated during the day then check out this thread.
An access token generated will remain valid for the whole trading day. If your access token is invalidated during the day then check out this thread.