Hello Swapnil...
I am also trying to look into this... if you have some time.. then can we discuss regarding this via call.
I will give you a call but don't worry I will not take your time more than 5 min.
You can what's app me on 9411122233 - Vijay.
Conversation with you might resolve some doubts on zerodha api and many more... I will wait for your message.
Regards,
Vijay Sahu.
April 2018