Features
Now, let’s take a look at how to add Angel One account in Stocks Developer.
Our system integrate with Angel Broking using their Smart API. Hence, you must generate an API key by registering to Angel Broking Smart API.
Platforms
Angel account can be onboarded in following ways:
- SMART_API => This integration uses Angel’s Smart API & it is the recommended platform
- SMART_API_M => This integration also uses Smart API, however it uses OAuth based login which requires you to manually login into your account once in a day before you start trading. This approach does not require your trading account credentials.
We have given below details of each platform.
SMART_API Platform [Recommended]
Here’s the demo video of the setup process, followed by each step mentioned in detail.
Demo video
How to generate Smart API private key?
Note: Set-up process including TOTP is one time activity. No need to do it everyday.
- Go to https://smartapi.angelbroking.com/ & sign up.
- Click Add App button
- App Name: MyTradingApp (do not give any space in the app name)
- Redirect URL: https://webx.stocksdeveloper.in/auth/angel
- Postback URL: https://apix.stocksdeveloper.in/postback/angel
- Static IP: See below “Static IP Setup“
- Click the Create App button
- To view your API Key. Go to menu (My Profile -> My APIs)
- Go to AutoTrader Web menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker: Angel
- Add your login id & MPIN (the one that you use on https://trade.angelone.in/)
- Add TOTP Key
- Add API Key generated in previous step (click view button in smartapi dashboard). It is displayed on top.
- Click Validate button
- Once you see a success message, click Save button
How to activate TOTP?
Note: Set-up process including TOTP is one time activity. No need to do it everyday.
- Generate TOTP Secret Key
- Install Google Authenticator app on your phone
- We need the secret key that is provided by Angel Smart API when you enable the TOTP
- Login to (https://smartapi.angelbroking.com/enable-totp)
- Enter OTP received in sms/email
- Now you will see a QR Code & Secret Key
- Scan this QR Code in Google Authenticator (this will be useful for your manual login)
- Save the Secret Key or keep this page open
- Copy the TOTP Key in AutoTrader Web
- In AutoTrader Web, go to menu (Settings -> Trading Accounts)
- Click on your Angel login id (to go to edit mode)
- You will see that there is a new field called TOTP Secret Key
- You need to copy the secret TOTP key to TOTP Secret Key (field)
- Click Validate & Save
SMART_API_M Platform [OAuth]
Steps in brief
- This method does NOT need TOTP setup
- Setup Angel’s Smart API as explained here
- Once you do the API setup, you will get API Key is all we need
Add Angel account to the system
- Go to menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker => Angel
- Select Platform => SMART_API_M
- Add API Key
- Click Validate
- You will be redirected to Angel website
- On successful login to Angel, your account will be saved
Static IP Setup
There are two ways to get a Static IP for your trading account:
- Option A β Auto-assign IP (recommended for most users): Our system assigns a dedicated Static IP from our pool.
- Option B β Bring Your Own IP (BYOIP): You supply your own proxy or IPv6 address. Use this if you already have a dedicated VPS or IPv6 block.
Both options are described below.
Option A β Auto-assign IP
This is a 2-step process:
1. Get your Static IP from our system first
Before creating your broker API, get your static IP from us:
- In our system, go to Settings β Trading Accounts β Add Account
- Select your Broker and enter your Login ID
- Click “Auto-Assign IP” button β the system will immediately reserve a static IP for you
- Note down the IP shown:
- IPv4 β One primary IP is provided
- IPv6 β Both primary and secondary IPs are provided
Your IP is reserved for 24 hours. Save your account within this time to permanently assign it.
2. Create your Broker API using the Static IP from Step 1
Now go to your broker’s API creation screen and fill in the details:
- IP Type: IPv4 or IPv6 (as assigned in Step 1)
- Primary Static IP: (shown in Step 1)
- Secondary Static IP: (shown in Step 1 β only for IPv6)
- Algo Registration Type: Non-Registered
- API/Algo Category: “Below” or “Less than” 10 orders per second
Once the broker API is created, go back to our system, add any API credentials which may be pending, click Validate and Save the account. The static IP will be automatically applied to your account.
For further help, check this YouTube video showing “How to map Static IP?“
Option B β Bring Your Own IP (BYOIP)
Use this option if you have a dedicated VPS or proxy server that you want to use instead of an IP from our system.
Note: Only one IP source can be active at a time. Activating BYOIP will automatically remove any system-assigned IP, and vice versa.
Step 1: Save your proxy in “My Proxies”
Before assigning a proxy to an account, register it once in your proxy library:
- Go to Settings β My Proxies
- Click “Add Proxy”
- Fill in the details:
| Field | Description |
|---|---|
| Label | A friendly name for your reference (e.g. “Zerodha VPS”) |
| Proxy Host | IP address or hostname of your proxy server |
| Port | Port number (1β65535) |
| Username | (Optional) Proxy authentication username |
| Password | (Optional) Proxy authentication password |
- Click Save
You can add multiple proxies here and reuse them across accounts.
Step 2: Assign the proxy to your trading account
For a new account (before saving):
- While adding a new account, enter your Broker and Login ID
- Click “Bring Your Own IP”
- Select the proxy from your saved list
- The proxy is reserved immediately β proceed to fill in remaining account details and Save
For an existing account:
- Go to Settings β Trading Accounts
- Click the pencil icon to edit your account
- Click “Bring Your Own IP”
- Select the proxy from your saved list and click “Apply”
- You will see the proxy displayed with a “Your IP” badge
Changing your proxy
- Click “Bring Your Own IP” again on the account edit screen
- Select a different proxy from your list and click “Apply”
Removing your proxy
- Click the “Remove” button next to the IP display
- The system will clear your proxy and return the account to unassigned state
- You can then use “Auto-Assign IP” to get a system IP instead
Managing your proxy library
- Go to Settings β My Proxies at any time to add, edit, or delete saved proxies
- Deleting a proxy from “My Proxies” does not affect accounts already using it