Fyers
Add and validate your Fyers account in QUANT LEVELS.
You must enable "External 2FA TOTP" at myaccount.fyers.in/ManageAccount first and note the TOTP key shown - Fyers' own authenticator app TOTP will not work for API login, it has to be this separately-generated external key.
Step 1 - Create an app
- Create an app at fyers.in/web/api-dashboard/user-apps.
-
Fill in the app form with:
Postback URL is optional on Fyers' form, but paste it anyway - it's a safety net for slave-order status updates.Field Value Redirect URL https://quantlevelsdevloper.in/auth/fyersPostback URL https://quantlevelsdevloper.in/postback/fyers?key=jByKSan5riiFoxHxtetuI2dkBRkOA_dm - Copy the generated App ID (looks like "L9NY305RTW-100") and Secret Key.
Step 2 - Add the account
- Go to Accounts → Add New Account.
- Select Broker as Fyers.
- Enter your Fyers Client ID (e.g. "TK01248"), 4-digit login PIN, the External 2FA TOTP Secret Key from Step 1, App ID and Secret Key.
- Save. Your access token auto-refreshes every day.
Common Issues
TOTP always rejected, even freshly copied
This almost always means the regular Fyers-app authenticator TOTP was used instead of the separate "External 2FA TOTP" key - go back to myaccount.fyers.in/ManageAccount and generate/copy that specific key.
Login works but no live data shows
Fyers' fund/position/holding endpoints can occasionally be slow to reflect a fresh login - give it the next 30-second refresh cycle before assuming something's wrong.
Copy trading on Fyers
Fyers' postback doesn't reliably cover manually-placed trades, so master detection for Fyers uses a live streaming connection we maintain per master account.
FAQ
Is Fyers' API free?
Fyers' trading API is free to use for personal automation.