Features
Now, let’s take a look at how to add Zerodha account in Stocks Developer.
Platforms
Zerodha account can be onboarded in following ways:
- ZERODHA_API_IPV6 => This integration uses Zerodha API & it is the recommended platform
- ZERODHA_API_M_IPV6 => This integration also uses Zerodha 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.
- KITE => This is our old integration platform, which will soon be stopped
We have given below details of each platform.
ZERODHA_API_IPV6 Platform [Recommended]
Here’s the demo video of the setup process, followed by each step mentioned in detail.
Demo
Steps in brief
You will need following details:
- Login id
- Password
- TOTP Key (You need to activate TOTP)
- API Key
- API Secret
How to get API Key & API Secret?
- Visit API dashboard: https://developers.kite.trade/apps
- Click Create New App button
- Type: Select Personal (Free)
- You also have the option to use Zerodhaβs paid API, if you prefer. Its main advantage is that when using a master-child copy setup β with your Zerodha account as the master β orders are copied with almost no delay.
- App Name: Stocks Developer
- Zerodha Client ID: Your Zerodha client id
- Redirect Url: https://webx.stocksdeveloper.in/auth/zerodha
- Postback Url: https://apix.stocksdeveloper.in/postback/zerodha
- Postback Url: It is optional, keep it blank
- Description: Multi account monitoring system
- Type: Select Personal (Free)
- Click Create button
- You app will be created
- You can click the App Id to get API Key & API Secret
How to setup TOTP?
- Install Google Authenticator app on your phone
- We need the secret totp key that is provided by kite when you enable the TOTP
- If you have already enabled TOTP, then you should have this key. Most likely you would have entered in TOTP based apps like Google Authenticator. In case you do not have the key, then you can disable TOTP and re-enable it.
- Steps:
- Login to kite website
- On top right side of your screen, click on your Login Id
- Click on your Name to go to the Profile section
- In the Profile page, on top right you have Password & Security
- This has an option to enable/disable the TOTP
- Watch the video above to understand
- Important: Remember to copy the key that is generated during this step (click on Can’t scan? Copy the key link button which can be seen in the image below) . This key will not be visible once your TOTP is enabled.
- Note: Only once you have enabled TOTP, then make sure you logout & login again into kite website. If possible, try 2-3 times multiple times logout and login.
Add Zerodha account to the system
- Go to menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker => Zerodha
- Select Platform => ZERODHA_API_IPV6
- Add remaining details
- Give a easy to remember nickname
- Click Validate
- On successful validation, click Save
ZERODHA_API_M_IPV6 Platform [OAuth]
Here’s the demo video of the setup process, followed by each step mentioned in detail.
Demo
Steps in brief
- This method does NOT need TOTP setup
- Setup Zerodha API as explained here
- Once you do the API setup, you will get API Key & API Secret (this is all we need)
Add Zerodha account to the system
- Go to menu (Settings -> Trading Accounts)
- Click Create button
- Select Broker => Zerodha
- Select Platform => ZERODHA_API_M_IPV6
- Add API Key & API Secret
- Click Validate
- You will be redirected to Zerodha website
- On successful login to Zerodha, 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. Create Broker API using any Dummy IP address
- If IP address is optional during API creation, then keep it blank.
- Otherwise, use a dummy IP address during API creation.
- IP Type: IPv4
- Primary Static IP:
- You can use this dummy IP generator website. OR
- You can just google “what is my ip” & enter your IP
- Note: we will update this later, in the next step
- Algo Registration Type: Non-Registered
- API/Algo Category: “Below” or “Less than” 10 orders per second
- Now add your account in our system (as explained above) & then come back to Step 2 given below.
2. Add your trading account in our system & then get Static IP
Once your account is successfully added in our system, then do the following:
- Get Static IP
- In our system, go to menu (Settings -> Trading Account)
- Click the “Pencil icon” next to your account to EDIT it
- Click “Auto-Assign IP” button
- Depending on your broker, system will give either an IPv4 or IPv6 static IP
- IPv4 => Only one primary IP is provided
- IPv6 => Both primary & secondary IPs are provided
- Assign Static IP in our newly created API on broker’s API screen
- IP Type: IPv6 or IPv4
- Primary Static IP: (You will be shown in the EDIT screen)
- Secondary Static IP: (You will be shown in the EDIT screen – only for IPv6)
- Algo Registration Type: Non-Registered (less than 10 orders / second)
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, proxy server, or IPv6 address block that you want to use instead of one 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: Open the BYOIP setup
- Go to Settings β Trading Account
- Click the pencil icon next to your account to edit it
- Click “Bring Your Own IP”
- A setup dialog will appear. The fields shown depend on your platform type:
| Field | Description |
|---|---|
| Proxy Host | IP address or hostname of your proxy server (e.g. 192.168.1.1) |
| Port | Port number your proxy listens on (1β65535, e.g. 3128) |
| Username | (Optional) Proxy authentication username |
| Password | (Optional) Proxy authentication password |
Step 2: Save and Apply
- Fill in the required fields and click “Save & Apply”
- The system will validate your input and apply the IP immediately
- On success, you will see your IP displayed with a “Your IP” badge β confirming it is your own IP, not a system-assigned one
Editing your IP later
- Click the “Edit” button (visible next to the “Your IP” badge) to update your proxy or IPv6 address at any time
- The dialog will open pre-filled with your current values
- Change what you need and click “Save & Apply” again
Removing your IP
- Click the “Remove” (unmap) button next to the IP display
- Confirm the removal
- The system will clear your custom IP and return the account to the unassigned state
- You can then either set up BYOIP again or use “Auto-assign IP” to get a system IP