Algo trading with Fyers
Connect your Fyers account to MyAlgoMate and automate your execution — one-click orders, risk controls and fast exits, no coding required.
Connecting Fyers
MyAlgoMate connects to Fyers through Fyers' official Trading API. You create your own app in the Fyers API dashboard, enable External 2FA (TOTP) on your Fyers account, whitelist a static IP as Fyers requires, and then enter your App ID, Secret ID, Fyers ID, PIN and TOTP key into the broker login form in MyAlgoMate.
Use Fyers with
Your Fyers account works with all 8 of these MyAlgoMate products — plus custom automation of your own strategy.
- Stockmock and Algotest strategy automation tool (Time Based Straddle Strangle)
- Trademate
- Copy Trading Software
- TradeBridge
- Cloud Server for Algo Trading
- RMS Tool
- ORB - Opening Range Breakout
- 5 EMA Strategy - Power of Stocks
- Custom strategy automation — your own logic, automated; you set the rules and stay in control.
Setting up Fyers
Step 1 — Create your app in the Fyers API dashboard
The Fyers Trading API is free — Fyers does not charge any subscription or fee for API access, and historical data, quotes and market data are included at no cost. You only need an active Fyers trading account.
- Go to myapi.fyers.in/dashboard and sign in with your Fyers account.
- Click Create App and fill in the app details:
- App Name — e.g. MyAlgoMate
- Redirect URL — set it to https://myapi.fyers.in/
- App Permissions — grant the permissions the app needs
- Description and logo — optional, you can leave these blank
- Your App ID and Secret ID are shown in the API dashboard as soon as the app is created — copy both. The App ID looks like
ABCD1234XY-100.
Step 2 — Enable TOTP and copy your TOTP key
- Go to myaccount.fyers.in/ManageAccount.
- Find External 2FA (TOTP) and click Enable.
- ⚠️ Copy the secret key shown while you are enabling TOTP — this is the TOTP key MyAlgoMate needs, and it is only shown during setup. If you miss it, disable TOTP and enable it again to generate a fresh key.
- Scan the QR code into an authenticator app (Google Authenticator, Microsoft Authenticator, Authy, etc.), which then generates a fresh 6-digit code every 30 seconds.
Step 3 — Register your static IP (mandatory)
Fyers requires a registered static IP for placing orders through the API (SEBI retail algo-trading rules, in force since 1 April 2026). Orders are only accepted from an App ID that is mapped to a whitelisted static IP address.
- Whitelist your static IP against your App ID in the Fyers API dashboard.
- Which IP to use: if you run MyAlgoMate on your own machine, use your ISP's static IP; if you run it on a cloud machine, use that cloud server's static IP.
No static IP or cloud machine yet? Our Cloud Server for Algo Trading is a cloud machine specialised for algo trading, and it comes with its own static IP you can whitelist.
Step 4 — Enter the details in MyAlgoMate
- Open the broker login form in MyAlgoMate and enter your App ID, Secret ID, Fyers ID, PIN and TOTP key, then save.
What you need to collect
To connect Fyers, the broker login form in MyAlgoMate needs five details:
- App ID — from the app you created in the Fyers API dashboard
- Secret ID — from the same app
- Fyers ID — your own Fyers login id, the one you sign in to Fyers with
- PIN — your Fyers trading PIN
- TOTP key — the secret key you copied when enabling External 2FA (TOTP)
One more thing is set on Fyers' side rather than entered here: you must whitelist a static IP against your App ID.
App ID and Fyers ID are not the same thing
These two are easy to mix up, and mixing them up is the most common reason a Fyers connection fails. Your App ID identifies the API app you created in the Fyers API dashboard and looks like ABCD1234XY-100. Your Fyers ID is your own account login id — the one you use to sign in to Fyers. MyAlgoMate needs both, in their own fields.
The Fyers Trading API is free
Fyers does not charge for its Trading API — there is no subscription to buy and nothing to renew, and historical data, quotes and market data are included at no cost. You only need an active Fyers trading account. (Fyers' own brokerage charges for your trades are separate and unchanged.)
Static IP — required by Fyers
Since 1 April 2026, SEBI's retail algo-trading rules require a registered static IP for API order placement — Fyers only accepts orders from an App ID that is mapped to a whitelisted static IP address. Whitelist the IP against your App ID in the Fyers API dashboard. Use your ISP's static IP if you run MyAlgoMate locally, or your cloud machine's static IP if you run it on a server.
If you don't have a static IP, our Cloud Server for Algo Trading is a cloud machine built for algo trading and includes a static IP you can whitelist.
Redirect URL
When you create the app, set the Redirect URL to https://myapi.fyers.in/
Keep your keys private
Your Secret ID, PIN and TOTP key are the keys to your own trading account — never share them with anyone. MyAlgoMate provides the automation technology; you set the rules and stay in control of your own trades.
Fyers — questions
Do I need to pay for the Fyers API?
No. Fyers' Trading API is free — there are no subscription or usage fees, and historical data, quotes and market data are included at no cost. You only need an active Fyers trading account.
What Fyers details does MyAlgoMate need?
Five: your App ID and Secret ID from the app you create in the Fyers API dashboard, your Fyers ID, your PIN, and your TOTP key. You enter all five in the broker login form in MyAlgoMate. Separately, you must whitelist a static IP against your App ID on Fyers' side.
What is the difference between my App ID and my Fyers ID?
Your App ID identifies the API app you created in the Fyers API dashboard and looks like ABCD1234XY-100. Your Fyers ID is your own account login id — the one you sign in to Fyers with. They are different values and go in different fields in MyAlgoMate; mixing them up is the most common reason a Fyers connection fails.
Do I need a static IP for Fyers API trading?
Yes — since 1 April 2026, Fyers only accepts API orders from an App ID that is mapped to a whitelisted static IP address. Whitelist it against your App ID in the Fyers API dashboard. Use your ISP's static IP if you run MyAlgoMate on your own machine, or your cloud machine's static IP if you run it on a server. If you don't have one, our Cloud Server for Algo Trading includes a static IP.
What Redirect URL should I set in my Fyers app?
Set it to https://myapi.fyers.in/
Where do I find my Fyers TOTP key?
Go to myaccount.fyers.in/ManageAccount, find External 2FA (TOTP) and click Enable. Copy the secret key shown while you are enabling it — that key is what you enter in MyAlgoMate. It is only shown during setup, so if you miss it, disable TOTP and enable it again to generate a fresh key. You can scan the QR code into an authenticator app as well.
Automate on Fyers, the compliant way
Connect in minutes, automate without code, and stay in control — with a team that answers.

