Skip to main content

Broker Connection Failed? Fix It in TradeLyser

If Connect and Save Account or Re-Auth doesn't finish, TradeLyser usually tells you why in a message at the corner of the screen, or your broker shows an error on its own login page. Find the message below, apply the fix and try again. Most fixes take under five minutes.

This page covers failures while connecting or re-authenticating. If the account is connected but trades don't arrive, see Trades not syncing. To check the health of an existing connection, see Troubleshoot broker connection issues.

Error message table​

Message or symptomWhat it meansFix
Popup Blocked, or nothing happens after you click connectYour browser blocked the broker's login windowAllow pop-ups
Missing CredentialsA required field (Client ID, API key, secret) is emptyFill in every field
Account Name Already Exists or Duplicate Account NameAnother account already uses that nameGive this account a different name
Account Saved — Continue AuthenticationThe account is saved, but the broker login isn't finishedFinish the login
Authentication CancelledThe login window was closed before it finishedClick connect or Re-Auth again and complete the login
Authentication Failed, Login Failed or Fyers Authentication FailedThe broker rejected the login or the app detailsCheck app details
The broker shows a redirect URL error after you log inThe redirect URL in your broker API app doesn't match TradeLyser'sFix the redirect URL
TOTP Code Required, TOTP Token Required, or the code is rejectedA code is missing or expiredFix codes
IMEI Required (Finvasia)The IMEI Finvasia gave you is missingEnter the IMEI provided by Finvasia
Post-auth Error or Connection FailedThe login worked but saving the connection failedRetry with Re-Auth
Use the same account in both places

Log in to the broker account that matches the Client ID you entered in TradeLyser. Starting the login in two tabs at once, or logging in as a different client, is a common cause of failed connections.

Most brokers log in through a pop-up window from app.tradelyser.com.

  1. Allow pop-ups for app.tradelyser.com in your browser's site settings.
  2. Click Connect and Save Account (new account) or Re-Auth in the account's ⋯ actions menu (existing account) again.
  3. Keep the TradeLyser tab open until the broker window closes and you see a Connected Successfully message.

Missing Credentials or invalid API key​

  1. Open your broker's developer console or API page and copy each value again: Client ID, API Key and API Secret, or App ID and App Secret for Fyers.
  2. Paste them into TradeLyser and check there are no spaces before or after them.
  3. Connect again.

If the broker itself says "Invalid API key" or "Invalid checksum", the key and secret don't belong to the same app, or one was copied incompletely.

The account saved but isn't connected​

Account Saved — Continue Authentication means TradeLyser stored the account, and you still need to finish the login in the pop-up. If you closed it, open Accounts, then the ⋯ actions menu on the account, and choose Re-Auth. You don't need to add the account again.

Authentication Failed or Login Failed​

  1. Check that the app you created at the broker is active and that you copied its details from the same app.
  2. Check your broker account is active and that you can log in on the broker's own website or app.
  3. Try again with Re-Auth. The message often includes the broker's own reason; note it if you contact support.

Redirect URL error on the broker's page​

Brokers that use a developer app send you back to TradeLyser only if the app's redirect URL matches exactly:

BrokerRedirect URL
Zerodha (Kite Connect)https://app.tradelyser.com/zerodha-callback
Fyershttps://app.tradelyser.com/fyers-callback
Upstoxhttps://app.tradelyser.com/upstox-callback

For other brokers, copy the Redirect (Call Back) URL shown on TradeLyser's connection screen. Edit the app on your broker's developer site, paste the URL with no trailing slash or spaces, save it, then connect again. Dhan, Angel One, Groww and 5paisa don't need a redirect URL in TradeLyser; see their guides below.

TOTP, MPIN or OTP problems​

Kotak Neo, Angel One, Motilal Oswal, Definedge, Finvasia and Groww log in with codes in a TradeLyser pop-up instead of a broker window.

  • TOTP rejected: enter the code currently shown in your authenticator app before it changes, and set your phone's clock to update automatically.
  • Angel One: use your 4-digit MPIN, not your trading password, and make sure TOTP is enabled on SmartAPI.
  • Groww: TOTP Token Required means you need the TOTP token from Groww's API Keys page, not an API key.
  • Definedge: if the OTP expired, click Resend OTP and enter the new one.

Post-auth Error or Connection Failed​

The broker login succeeded, but TradeLyser couldn't save the session.

  1. Refresh the Accounts page.
  2. Run Re-Auth on the account once more.
  3. If it fails again, use Report Issue from the round support button (bottom right) so the screenshot and message reach the team.

Broker setup guides​

Frequently asked questions​

Why does my broker connection fail in TradeLyser?​

The most common causes are a blocked pop-up, a redirect URL that doesn't match, API details copied with spaces, and an expired TOTP code. Match your error message in the table above.

Do I need to delete the account and add it again?​

Usually not. If the account was saved, finish or repeat the login with Re-Auth from the account's ⋯ menu.

Why does Zerodha need a login every day?​

Zerodha, like most Indian brokers, expires API logins daily. Re-authenticate each trading day before the 10:30 pm nightly sync.

Will a failed connection delete my trades?​

No. A failed login doesn't change trades already in TradeLyser.