Broker Connect  ·  Dashboard

Connect your broker for real-time data

OptionAlgo shows live prices, option chains, OI, GEX and market depth from your own broker account. You create a free API app with your broker, connect it here once, and we use it only to fetch your data. We never place orders.

Dhan Kotak Neo Angel One Zerodha Kite Upstox Fyers Groww Sahi

How it works

1
Create an API appIn your broker's developer portal. Takes about 2 minutes and is free with most brokers.
2
Connect it herePaste the keys on Broker Connect. They're encrypted at rest and never shown again.
3
Stay logged inBrokers end API sessions every night. We log in for you each morning where the broker allows it.

Pick a broker

BrokerDaily loginWhat you'll needMarket depthAPI cost
DhanAutomaticClient ID, PIN, TOTP secret5 levels₹499/month + GST (Data API)
Kotak NeoAutomaticConsumer key, UCC, mobile, MPIN, TOTP secret5 levelsFree
Angel OneAutomaticAPI key, client code, MPIN, TOTP secret5 levelsFree
FyersAuto for ~15 daysApp ID, secret, PIN5 levelsFree
UpstoxOne click, or none with an Analytics TokenAPI key, secret (+ Analytics Token)5 levelsFree
GrowwAutomaticTrade API key (TOTP), TOTP secret5 levels₹499/month + GST
SahiAutomaticTOTP API key id, secret, TOTP secretMarket depthCheck with Sahi
Zerodha KiteOne click each morningAPI key, API secret5 levels₹500/month (Kite Connect)

Static IP: not needed for market data

Since 1 April 2026, SEBI and the exchanges require a whitelisted static IP only for order APIs (placing, modifying or cancelling orders). Quotes, market depth and option-chain data work from any IP, and that is all OptionAlgo uses, so you don't have to whitelist anything to get live data.

Some brokers still ask for an IP when you create or activate an API app (Fyers does; Upstox and Angel One may). If yours asks, enter OptionAlgo's server IP:

200.97.174.183 IPv4 · primary or secondary IP
Whitelisting an IP lets API calls from that address reach your account. OptionAlgo only calls market-data APIs and never places orders. If you also trade through your own scripts, keep your own IP as the primary and add ours as the secondary: most brokers allow two, and Zerodha allows one change per week.

Step-by-step

D

Dhan

Fully automatic

You'll need: your Dhan Client ID, your 6-digit PIN and a TOTP secret.

  1. Log in to web.dhan.co → My Profile → Access DhanHQ APIs.
  2. Under Access Token generation, choose Setup TOTP. When the QR code appears, also copy the secret key shown with it, and finish the setup in your authenticator app.
  3. On OptionAlgo open Connect Dhan and enter your Client ID, PIN and the TOTP secret.
  4. Done. We generate a fresh token every morning.
No TOTP? Paste a 24-hour Access Token instead (same page → Generate). We renew it each morning. Use a token that's only for OptionAlgo: renewing it ends any other copy of it.
Dhan's market-data APIs need Dhan's Data API subscription: ₹499/month + GST, bought in web.dhan.co under DhanHQ Trading APIs.
K

Kotak Neo

Fully automatic

You'll need: the consumer key from your Trade API app, your UCC (client code), mobile number, MPIN and a TOTP secret.

  1. In the Kotak Neo app or website, open Invest → Trade API (Trade API page) and create an application. Copy its consumer key.
  2. Register TOTP for API login (Kotak allows only TOTP login for APIs) and copy the TOTP secret while scanning the QR.
  3. On OptionAlgo open Connect Kotak Neo and fill in the five fields.
  4. Done. We log in each morning before the market opens.
Kotak allows one API session per account: our morning login ends any other Kotak API session, such as your own scripts. Your Neo app and website aren’t affected.
A

Angel One SmartAPI

Fully automatic

You'll need: a SmartAPI key, your client code, MPIN and a TOTP secret.

  1. Sign in at smartapi.angelbroking.com → Create an App (type: Trading APIs). Copy the API key.
  2. Enable TOTP at smartapi.angelbroking.com/enable-totp and copy the secret shown with the QR.
  3. On OptionAlgo open Connect Angel One and enter the API key, client code, MPIN and TOTP secret.
"Invalid TOTP" usually means the secret has spaces or the wrong characters. Paste it exactly as shown.
Z

Zerodha Kite

One click each morning

You'll need: your own Kite Connect app (API key and secret).

  1. Sign in at developers.kite.trade and create an app.
  2. Set the Redirect URL to https://optionalgo.in/broker/callback/kite.
  3. On OptionAlgo open Connect Zerodha Kite, paste the API key and secret, and log in on Zerodha's page.
  4. Each morning, press Reconnect on Broker Connect. Zerodha doesn't allow automated logins.
Live market data on Kite Connect needs Zerodha's paid Connect plan (₹500/month). The free Personal plan doesn't include market data.
U

Upstox

One click, or none

You'll need: an Upstox API app (API key and secret).

  1. Open account.upstox.com/developer/apps and create a new app.
  2. Set the Redirect URL to https://optionalgo.in/broker/callback/upstox.
  3. Optional: generate a read-only Analytics Token in the same section. With it you won't need a daily login.
  4. On OptionAlgo open Connect Upstox, paste the key, secret (and Analytics Token), then log in on Upstox's page if asked.
F

Fyers

Automatic for ~15 days

You'll need: a Fyers API app (App ID and Secret ID) and your 4-digit PIN.

  1. Open myapi.fyers.in → Create App, with Redirect URL https://optionalgo.in/broker/callback/fyers, and activate it.
  2. On OptionAlgo open Connect Fyers, paste the App ID, Secret ID and PIN, then log in on Fyers' page.
  3. We renew your session each morning with the Fyers refresh token. After about 15 days, log in on Fyers' page once more.
G

Groww

Fully automatic

You'll need: a Groww Trade API subscription (₹499/month + GST), its TOTP API key and the TOTP secret.

  1. Open groww.in/trade-api and subscribe to the Trade API.
  2. In Trade API keys, choose Generate TOTP token. Copy the API key, and copy the secret shown with the QR code.
  3. On OptionAlgo open Connect Groww and paste both.
  4. Done. We log in for you every morning.
S

Sahi

Fully automatic

You'll need: a Sahi trading account with API access, and a TOTP-type API key (key id, secret and its TOTP secret).

  1. In the Sahi app or web, open your profile → API keys and create a key. Choose the TOTP type so it doesn't need a daily approval click. See Sahi's quick start.
  2. Copy the key id (starts with pk_), the secret (starts with sahi_sk_, shown once) and the TOTP secret shown with the QR code.
  3. On OptionAlgo open Connect Sahi and paste all three. We log you in every morning before the market opens; the session lasts until 06:00 IST.

Market data works from any IP. Sahi asks for a registered static IP only for placing orders, which OptionAlgo never does.

Questions

Why do I have to connect my own broker?

Exchange rules don't allow us to redistribute real-time market data. With your own connection, the data comes from your broker to you, under your broker's data agreement. That's how OptionAlgo stays compliant.

Can OptionAlgo place orders or move money?

No. We only call market-data APIs (quotes, depth, option chain). We never call order or funds APIs, and exchanges would reject orders from our servers anyway because they aren't whitelisted on your account.

How are my credentials stored?

Keys, PINs and TOTP secrets are encrypted at rest and used only by the daily login job and to fetch your own data. You can disconnect at any time from Broker Connect, which deletes the session and every saved credential.

My connection shows "expired".

Brokers end API sessions every night. For Dhan, Kotak and Angel we log in automatically around 08:40. If it still says expired, open Broker Connect: the error explains what the broker rejected (often a changed MPIN or TOTP). Kite and Upstox need the one-click Reconnect each morning.

Is the data delayed?

No. It's the same real-time data your broker app shows, including 5-level market depth.

Open Broker Connect →

Broker names belong to their owners and appear only to identify the connection option. OptionAlgo is not affiliated with any broker or exchange.