Skip to main content

Troubleshoot Broker Connection Issues in TradeLyser

Most broker connection problems in TradeLyser come down to three things: the broker's daily login has expired, the first login never completed, or a setting on the broker's side (redirect URL, API key or TOTP) doesn't match. This page shows you how to read an account's health on the Accounts page and fix each problem in a few minutes.

Use this page when:

  • An account card shows Re-auth required or Token Expired.
  • Re-Auth or Connect and Save Account doesn't finish.
  • The account was saved but never connected.
  • You aren't sure whether a connection or a sync is the problem.

Symptom table​

What you seeMost likely causeFix
Status Re-auth required, or Token ExpiredThe broker's daily login has expiredRe-authenticate
An error toast while connecting, such as Popup Blocked or Authentication FailedThe first login didn't completeBroker connection failed
The broker shows a redirect URL error after you log inThe redirect URL in your broker API app doesn't matchPer-broker checks
A TOTP, MPIN or OTP code is rejectedExpired code or wrong phone clockPer-broker checks
No Sync Trades or Re-Auth in the menuThe account uses File Upload or Manual EntryWrong import method
Status is fine but trades are missingA sync problem, not a connection problemTrades not syncing
Live Insights shows OfflineThe live order feed isn't connectedLive Insights

Step 1: Read the account card​

The Accounts page in TradeLyser, with one card per broker account showing status, method, last sync and token validity

  1. Open Accounts: choose Manage accounts at the bottom of the account selector, or Accounts Settings in your avatar menu.
  2. Find the broker account and check these fields:
FieldWhat it tells you
StatusConnected or Healthy means the connection works. Re-auth required means the broker login has expired.
Method badgeAuto Sync, Import (file upload) or Manual. Only Auto Sync accounts connect to the broker.
TokenHow long the current broker login stays valid.
Last SyncWhen trades last arrived.
Live / Live InsightsWhether the live order feed is connected (Live) or not (Offline).

File Upload and Manual accounts always show Connected, because they never log in to a broker.

Step 2: Re-authenticate the account​

Most Indian brokers expire API logins every day, so Re-auth required is normal and not an error.

  1. Open the ⋯ actions menu on the account card.
  2. Choose Re-Auth.
  3. Log in to your broker. Most brokers open a login window. Kotak Neo, Angel One, Motilal Oswal, Definedge, Finvasia and Groww ask for codes (TOTP, MPIN or OTP) in a pop-up instead.
  4. When the status returns to Healthy, run Sync Trades if you want today's trades now.

Re-authenticate before 10:30 pm IST on trading days. The automatic nightly sync runs Monday to Friday at 10:30 pm and skips accounts whose login has expired. TradeLyser sends a login reminder (bell and email) around 8:30 am and a last call around 9 pm; you can mute them per account with Turn off login reminders. The full sync checklist is in Trades not syncing.

If Re-Auth shows an error or the broker window closes without connecting, go to Broker connection failed.

Step 3: Check the broker-specific settings​

The account actions menu in TradeLyser with Sync Trades, Sync History, Re-Auth and Live Insights

Each broker connects differently. Check the item for yours:

BrokerWhat usually breaksGuide
ZerodhaThe Kite Connect app's Redirect URL must be exactly https://app.tradelyser.com/zerodha-callback. API key or secret copied with spaces.Connect Zerodha
FyersThe Fyers app's Redirect URL must be exactly https://app.tradelyser.com/fyers-callback. Pop-up blocked.Connect Fyers
UpstoxThe Upstox app's Redirect URI must be exactly https://app.tradelyser.com/upstox-callback.Connect Upstox
Angel One4-digit MPIN and a current 6-digit TOTP. TOTP must be enabled on SmartAPI first.Connect Angel One
GrowwYou need a TOTP token from Groww's API Keys page, not an API key, plus the current code.Connect Groww
DhanNo API app or redirect URL. Allow the Dhan pop-up and approve access before closing it.Connect Dhan
5paisaAllow pop-ups. The client code must match the 5paisa account you log in with.Connect 5paisa

For other brokers that use a developer app, copy the Redirect (Call Back) URL shown on TradeLyser's connection screen into your broker's API app settings, character for character.

TOTP codes depend on your phone's clock

If a TOTP code is rejected even though you typed it correctly, set your phone's date and time to update automatically, then enter a fresh code before it changes.

The account uses the wrong import method​

Sync Trades, Sync History and Re-Auth only appear on accounts created with Auto Sync. An account's import method and calculation method (FIFO, LIFO or WA) can't be changed after it is created.

To start syncing a broker you've been importing by file, add a new account with Auto Sync from Accounts → Add Account. See Add multiple broker accounts.

Live Insights shows Offline​

Live Insights is a live order feed for supported brokers, separate from the login used by Sync Trades. If it shows Offline:

  1. Re-authenticate the account (Step 2).
  2. Open the ⋯ actions menu and choose Live Insights to connect the feed again.

For Dhan, also switch Enable Push from Dhan off and on again, as described in Connect Dhan.

Still connected, but you want to stop​

TradeLyser has no separate disconnect switch. To stop using a broker account, archive or delete it, and optionally delete the API app on the broker's side. See Disconnect a broker.

Frequently asked questions​

Why does TradeLyser ask me to log in to my broker every day?​

Most Indian brokers expire API logins daily. Use Re-Auth from the account's ⋯ menu each trading day before 10:30 pm so the nightly sync can run.

Is "Re-auth required" an error?​

No. It means the broker's login has expired. Re-authenticate and the status returns to Healthy.

Can I change my account from File Upload to Auto Sync?​

No. The import method is permanent. Add a new account with Auto Sync instead.

Where do I see why a sync failed?​

Open Settings → Sync History and hover the eye icon on the failed run to read the error. See Sync history.

Next steps​