I saw multiple posts in last 10 days ....still not able to do following.
Requirements Part1 - Have a nodeJS web application. Upon accessing a sample page in web application -- it should redirect to kite login page and then read request token from whatever redirection happens there. Then based on that redirection it gets requestToken and gets accessToken.
Now once access token is set and ready for use for placing orders.
Requirement Part2 - Then i want to implement following -
Say for example I enter some URL and press enter - http://localhost:9999/xyzKiteApp?Script='BNF'&OrderType='PE/CE'&exitType=''&'Quantity='1' --If it's PE and exit type - true ... then it should exit all CE positions and buy PE quantity lot BNF current spot [ round Off value. example - BNF is 30120 ..so buy 30100 PE option ] --If it's PE and exit type - false... then it should not do anything with existing positions and buy PE quantity lot BNF current spot [ round Off value. example - BNF is 30120 ..so buy 30100 PE option ] --similarly for CE
Please help me with atleast first requirement.....that's not strategy implementation. Thanks