Kotak

Add and validate your Kotak account in QUANT LEVELS.

From 1 April 2026, Kotak requires a whitelisted static IP for placing/modifying/cancelling orders - the session must also have been created from that same IP. Do this before trading live, and never swap an in-use account's Proxy IP without re-whitelisting the new one first.

Step 1 - Get your NEO Access Token

  1. Open the NEO app or web → More → Trade API → API Dashboard.
  2. Click Create Application and copy the token shown - this is your NEO Access Token.

Step 2 - Register TOTP

  1. On the same API Dashboard, click TOTP Registration (top right).
  2. Scan the QR code with Google Authenticator or Microsoft Authenticator.
  3. Enter the 6-digit code shown and confirm "TOTP successfully registered".
If registration fails with "Invalid TOTP", make sure your phone's clock is set to automatic (Settings → Date & Time).

Step 3 - Add the account

  1. Go to Accounts → Add New Account.
  2. Select Broker as Kotak.
  3. Enter your UCC (Client Code, from NEO's Profile section), your 6-digit MPIN (same one you use in the NEO app), the TOTP Secret Key from Step 2, your registered Mobile Number (with +91), and the NEO Access Token from Step 1.
  4. Save, then whitelist this account's assigned Proxy IP under NEO → Trade API → API Dashboard → Add IP.

Common Issues

Orders fail with "unauthorized" (stCode 100008)

The account's proxy IP isn't whitelisted on the NEO API Dashboard yet, or the session was created from a different IP than the one placing the order. Whitelist the correct IP and re-login.

Orders fail with "session ip doesnt match with reqest ip" (stCode 1037)

The IP is whitelisted, but this account's session was created from a different IP (e.g. the proxy was changed after login). Log in again from the whitelisted IP.

Can I change the whitelisted IP?

Yes, but only once every 7 days, and a new session must be created afterward. Never change an in-use account's proxy without whitelisting the new IP first.

Copy trading on Kotak

Kotak has no postback for manually-placed trades, so master detection uses a live streaming connection ("Order & Position Streaming") we maintain per master account, same architecture as Finvasia and a few other brokers here.

FAQ

Are market orders allowed?

Kotak recommends limit orders for algo trading per SEBI's retail-algo circular - a market order you send is automatically re-priced to a protected limit near LTP by Kotak's own system.

Do I need to send an Algo ID?

No - Kotak Neo APIs append the required exchange Algo ID automatically.