OTP login automation is applicable for those brokers who require SMS/Email based OTP during login. This is not applicable for TOTP.
Currently, this process is only applicable for following brokers:
- Upstox (PRO Platform)
There are two ways to do OTP automation.
- Email OTP Automation (Mandatory)
- SMS OTP Automation (Recommended)
Email OTP Automation
We use a feature called forwarding which is provided by email providers. Following process has been explained for GMAIL. If you use some other provider, please see Email Forwarding setting for your email provider.
Demo
Note: Detailed screenshots are provided below for better understanding.
Steps
- Go to your Gmail Settings
- The settings icon is on Top right corner of your gmail
- Click See all settings
- (See screenshot 1 below)
- Add forwarding address
- Go to tab Forwarding and POP/IMAP (see screenshot 2 below)
- Click Add a forwarding address
- Enter alerts@stocksdeveloper.in
- A new pop-up will come up, click Proceed
- You will get a message “a confirmation code has been sent to verify permission“. (See screenshot 3 below)
- Ask stocks developer team or your portfolio manager to contact us and allow the permission.
- Once we have approved it, you will see our email added to forwarding section. You need to refresh your page or go back to gmail settings to check.
- Important: Make sure forwarding is disabled as (seen in screenshot 4 below). This is extremely important, otherwise all of your emails will be forwarded; which is not what we want. In next step, we shall create a filter to only forward OTP emails.
- Create a filter
- Download the filter file
- Go to gmail settings & click on Filters and Blocked Addresses tab (see screenshot 5 below)
- Click Import Filters
- Click Choose File (select the file you downloaded in step 1)
- Click Open
- Once you click Open then the imported rules will be visible in your filters (see screenshot 6 below)
- Click Create Filters button to import the filter
- That’s it, you are all set. Your login will be automatically done.
Screenshots






SMS OTP Automation
This only works for Android phones. You need to install Android app provided below which shall help in OTP automation.
Note: Detailed screenshots are provided below for better understanding.
Steps
- This process needs to be done on “phone no registered with the stock broker for the given trading account“.
- Installation
- Download the Android app from here
- You will get an option called Open with
- Select Package installer
- Click INSTALL
- You will get a warning “Unsafe app blocked“
- Click More details
- Click Install anyway
- You will get a warning “Send app for a security check?”
- Click Don’t send
- Open the App
- Permissions
- Once you open the app, click ALLOW SMS PERMISSION
- Click Allow
- Add Trading Account
- Click CREATE
- Select Broker
- Enter Trading Account Login ID
- Enter Phone no. (linked to the above trading account)
- Click Save
- Final Checks
- Users must make sure that the app is running everyday by checking Android notifications. User will see a notification called “PMS auto-login service”
- The app will monitor for OTP sms
- As soon as it finds a new OTP sms, it will be used for automated login on AutoTrader Web
- Users must make sure that the app is running everyday by checking Android notifications. User will see a notification called “PMS auto-login service”
Screenshots









