Features
Now, let’s take a look at how to add Fyers account in Stocks Developer.
Demo
Steps
1. Enable TOTP & get the Key
- Go to My Account and click on ‘Manage Account’ (Under your profile). (See screenshot 1 below)
- Go to section Others
- Scroll down, and you will see ‘External 2FA TOTP’, click on ‘Enable.’ A QR code will pop up along with the instructions.
- IMPORTANT: Just below the QR code you will see a link (Click here to copy the key). Click on that link to copy the key & save it somewhere. We will need this later. (See screenshot 2 below)
- Open any of your Authenticator Apps (such as Google Authenticator, Microsoft Authenticator, Authy, etc.) on your smartphone.
- Click on ‘Scan a QR code’ under Add an Account Section and allow access to the phone camera.
- Enter your 4 digit PIN first. Scan the QR code displayed in the My Account; a 6-digit TOTP will be generated.
- Click on Enable; your TOTP will be set up successfully.
- Note: Only once you have enabled TOTP, then proceed with next steps.
2. Setup quick access pin
- Do this only if it is not set already
- Go to My Account and click on ‘Manage Account’ (Under your profile). (See screenshot 1 below)
- Scroll down, and you will see ‘PIN’ setup option. (See screenshot 1 below)
3. Create API app
- Visit following link (https://myapi.fyers.in/dashboard)
- Click Create App button
- Enter following details:
- App Name: MyTradingApp
- Redirect Url: https://webx.stocksdeveloper.in/auth/fyers
- Postback Url: https://apix.stocksdeveloper.in/postback/fyers
- Select ALL app permissions
- Accept the terms checkbox
- Click Create App
- Once you have created the app, you will get App ID & Secret ID (See screenshot 3 below)
4. Setup your account in AutoTrader Web
- On AutoTrader Web, go to menu (Settings -> Trading Accounts)
- If you are adding account for first time then click Create button, otherwise click on the login id of your Fyers account to go to Edit mode.
- Select broker Fyers
- Select platform FYERS_API_IPV6
- Enter your Fyers login id
- Enter your TOTP secret key
- Enter your 4 digit pin
- Enter your App ID (API)
- Note: Paste entire App ID including the 3 digits at the end
- Enter your Secret ID (API)
- Click Validate button
- On successful validation, click save to the account
- Thatβs it, you have successfully added your Fyers account. Do not forget to read these known limitations.
Screenshots
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