How to Connect Fyers to TradeLyser
Connect your Fyers account to TradeLyser and your trades flow into your trading journal without downloading order reports every evening. TradeLyser uses the official Fyers API: you create an app once in the Fyers API dashboard, paste its App ID and App Secret into TradeLyser, and log in to Fyers. Setup takes about 10 minutes.
Once connected you can:
- Sync Fyers trades automatically every weekday night, or with one click whenever you want them sooner.
- Turn on Live Insights so your Fyers fills appear in TradeLyser as they happen.
- Import older Fyers trades from a file with TradeLyser's dedicated Fyers parser.
- Track P&L, win rate, fees and tax for every Fyers trade on the TradeLyser dashboard.
What you need
| Requirement | Where to get it |
|---|---|
| An active Fyers trading account | fyers.in |
| A Fyers API app (App ID and App Secret) | Fyers API dashboard, created in Step 1 below |
| A TradeLyser account | app.tradelyser.com (a free trial is available) |
Fyers sends you back to TradeLyser only if the Redirect URL in your Fyers app matches TradeLyser's callback URL character for character:
https://app.tradelyser.com/fyers-callback
A missing https://, an extra / at the end or a typo is the most common reason a Fyers connection fails.
Step 1: Create a Fyers API app
- Go to the Fyers API dashboard and log in with your Fyers account.
- Click Create App.
- Fill in the details:
- App Name:
TradeLyser(or any name you will recognise) - App Icon: any image, if the form asks for one
- Redirect URL:
https://app.tradelyser.com/fyers-callback - Webhook details: optional, leave blank
- App Name:
- Give the app all available permissions.
- Create the app, then copy its App ID and App Secret. Keep the secret private, as you would a password. Fyers advises never to share it in screenshots or support messages.
You only need the App ID and App Secret the first time you connect. After that, you just log in to Fyers when your session expires.
Step 2: Add your Fyers account in TradeLyser

- In TradeLyser, open Accounts and click Add Account.
- Choose Fyers. Brokers with a green dot are supported for Auto Sync.
- Choose a calculation method. This decides how buys and sells are matched into trades:
- FIFO (first in, first out) is recommended. It matches how most Indian brokers report P&L.
- LIFO matches the most recent buy first.
- WA uses the weighted average price.
- Choose Auto Sync as the import method.
- Enter an account name (for example
Fyers – F&O), then paste the App ID and App Secret from Step 1. - Click Connect and Save Account. TradeLyser saves the account and opens the Fyers login in a pop-up window.
- Log in to Fyers and approve access. You are returned to TradeLyser and see Fyers Connected Successfully.
If the login doesn't finish, the form shows Authentication Failed with a Re-authenticate button, so you can try again without re-entering your details. Allow pop-ups for app.tradelyser.com if the Fyers window doesn't open.
The calculation method and import method cannot be changed after the account is created. If you need a different method later, add a second Fyers account in TradeLyser.
Step 3: Sync your Fyers trades

Open the ⋯ actions menu on your Fyers account card:
| Action | What it does |
|---|---|
| Sync Trades | Fetches today's orders from Fyers. You can choose to skip fees, taxes or slippage, then click Fetch Orders. Large syncs run in the background and you get a notification when they finish. |
| Live Insights | Connects a live order feed from Fyers, so fills appear as they happen. |
| Re-Auth | Logs in to Fyers again when the session has expired. |
| Import Trade | Imports a Fyers order file, which is how you bring in past trades (see below). |
Sync History is not available for Fyers, so past trades come from a file import. TradeLyser also syncs your Fyers account automatically every Monday to Friday at 10:30 pm IST, as long as your Fyers login is still valid at that time. Run Sync Trades whenever you want today's trades in TradeLyser sooner, for example right after the market closes.
After a sync, click the refresh icon in the TradeLyser header so every dashboard widget picks up the new trades straight away.
Turn on Live Insights for Fyers
- Open the ⋯ actions menu on the Fyers account and choose Live Insights.
- In Fyers Push Settings, switch on Enable Push from Fyers.
- Connection Status changes to Connected. Click View Traded Orders to see the orders received.
Import past Fyers trades from a file
TradeLyser has a dedicated Fyers parser, so you can backfill older trades or skip the API entirely:
- Download your order history for the date range from Fyers, keeping the file as exported.
- Open the ⋯ actions menu on the Fyers account (or the header) and choose Import Trade.
- Drag in the file. TradeLyser detects the Fyers format and shows a preview.
- Click Map Data, review the mapped orders and click Import Trades.
The parser reads Fyers columns such as Symbol (for example NSE:NIFTY2552224600PE), Buy/ Sell, Qty, Traded Price, Status and Order Date & Time. Only orders with a Traded status are imported. To avoid duplicates, end the file's date range on the day before you started using Sync Trades. If a file isn't recognised, use the TradeLyser CSV template. See Import trades from CSV.
Re-authenticate every trading day
Fyers API sessions expire daily. When that happens, the account card shows Re-auth required. Log in again before 10:30 pm so the nightly sync can run, and before any manual sync, open the ⋯ actions menu, choose Re-Auth and log in to Fyers again. The account card's Token field shows how long the current session remains valid.
If your Fyers login has expired, TradeLyser reminds you with a bell notification and an email in the morning (around 8:30 am) and a last call around 9 pm, so you can log in before the 10:30 pm sync. Accounts that are still logged out at 10:30 pm are skipped that night. To stop these reminders for an account, choose Turn off login reminders in its ⋯ actions menu.
Troubleshooting Fyers connection issues
| Problem | Fix |
|---|---|
| Fyers shows a redirect URL error, or you are not returned to TradeLyser | The Redirect URL in your Fyers app doesn't exactly match https://app.tradelyser.com/fyers-callback. Edit the app in the Fyers API dashboard, correct it, and click Re-authenticate. |
| "Invalid app ID" or login fails | Copy the App ID and App Secret again from the Fyers API dashboard. Check there are no spaces before or after them. |
| The Fyers window doesn't open | Your browser blocked the pop-up. Allow pop-ups for app.tradelyser.com. |
| Account shows Re-auth required | The daily Fyers session has expired. Use Re-Auth from the ⋯ menu. |
| Today's trades are missing | Run Sync Trades after the order is executed (or wait for the 10:30 pm nightly sync), then click the header refresh icon. |
| Older trades are missing | Import them from a Fyers order file with Import Trade. |
| Some file rows weren't imported | Only Traded orders are imported. Pending, cancelled and rejected orders are skipped. |
Still stuck? Follow Troubleshoot broker connection or Trades not syncing, or email support@tradelyser.com.
Frequently asked questions
Does TradeLyser support Fyers?
Yes. Fyers is supported for Auto Sync through the official Fyers API, for Live Insights, and for File Upload with a dedicated Fyers file parser.
What redirect URL do I use for the Fyers API app?
Use https://app.tradelyser.com/fyers-callback, exactly as written.
Can I import old Fyers trades?
Yes. Sync History isn't available for Fyers, so import older trades from a Fyers order file with Import Trade.
Do I need to log in to Fyers every day?
Yes. Fyers API sessions expire daily, so use Re-Auth to log in again before 10:30 pm so the nightly sync can update your trades, and before any manual sync.
Can I connect more than one Fyers account?
Yes. Add each Fyers account separately from Accounts → Add Account. The number of accounts you can add depends on your TradeLyser plan. See Add multiple accounts.
Next steps
- Sync broker trades
- View your trades log
- Create your first journal entry
- Connect Dhan if you also trade with Dhan