Algo trading with Alice Blue
Connect your Alice Blue account to MyAlgoMate and automate your execution — one-click orders, risk controls and fast exits, no coding required.
Does MyAlgoMate work with Alice Blue?
Yes. Your Alice Blue account works with 10 MyAlgoMate products: StockMock & AlgoTest Strategy Automation, TradeMate, Copy Trading Software, TradeBridge, Cloud Server for Algo Trading, RMS Tool, ORB - Opening Range Breakout, 5 EMA Strategy - Power of Stocks, Virtual Trading Environment and Trade Scalper. In copy trading, an Alice Blue account can be the master or a child — see copy trading with Alice Blue, step by step. You connect it once with your own Alice Blue API details. MyAlgoMate provides the technology only — the software places the orders you set up, and gives no tips or advice.
Last updated:
Connecting Alice Blue
MyAlgoMate connects to Alice Blue through the official ANT API. You create an app in the ANT dashboard to get your API Key and API Secret, enable TOTP on your Alice Blue account, whitelist a static IP as Alice Blue requires, and then enter your API Key, API Secret, Client ID, Password and TOTP key into the broker login form in MyAlgoMate.
Use Alice Blue with
Your Alice Blue account works with all 10 of these MyAlgoMate products — plus custom automation of your own strategy.
- StockMock & AlgoTest Strategy Automation
- TradeMate
- Copy Trading Software — see Alice Blue copy trading (master or child, API and static IP)
- TradeBridge
- Cloud Server for Algo Trading
- RMS Tool
- ORB - Opening Range Breakout
- 5 EMA Strategy - Power of Stocks
- Virtual Trading Environment
- Trade Scalper
- Custom strategy automation — your own logic, automated; you set the rules and stay in control.
Setting up Alice Blue
Step 1 — Create your app and copy your API Key and API Secret
The ANT API is free — Alice Blue does not charge a subscription for API access. You only need an active Alice Blue trading account.
- Log in to ant.aliceblueonline.com with your Alice Blue account.
- Go to Apps, then API Key, and create a new app:
- App Name — e.g. MyAlgoMate
- Redirect URL — set it to https://ant.aliceblueonline.com
- Copy your API Key (App ID) and API Secret (App Secret) — keep the API Secret confidential.
- Note your Client ID — your Alice Blue account id, the one you sign in with.
Step 2 — Enable TOTP and copy your TOTP key
MyAlgoMate signs in to your Alice Blue account for you, so it needs the TOTP secret key itself rather than a 6-digit code you type in.
- Enable TOTP (external 2FA) on your Alice Blue account.
- When the QR code appears, save the secret key it contains — most authenticator apps show a “can't scan the code?” or manual-entry option that reveals it. This secret key is the TOTP key MyAlgoMate needs.
- Scan the QR code into your authenticator app (Google Authenticator, Authy, etc.) as well.
Step 3 — Whitelist your static IP (mandatory)
A registered static IP is required for placing orders through the API (SEBI retail algo-trading rules, in force since 1 April 2026). Alice Blue only accepts API orders from a whitelisted static IP.
- In the ANT dashboard, enter your static IP address, select the IP Type, and submit.
- Which IP to use: if you run MyAlgoMate on your own machine, use your ISP's static IP; if you run it on a cloud machine, use that cloud server's static IP.
No static IP or cloud machine yet? Our Cloud Server for Algo Trading is a cloud machine specialised for algo trading, and it comes with its own static IP you can whitelist.
Step 4 — Enter the details in MyAlgoMate
- Open the broker login form in MyAlgoMate and enter your API Key, API Secret, Client ID, Password and TOTP key, then save.
Alice Blue algo trading with MyAlgoMate
MyAlgoMate is algo trading software that connects to your own Alice Blue account through Alice Blue's official ANT API. You create an API app in the ANT dashboard, enable TOTP, whitelist a static IP and enter five details in the MyAlgoMate broker login form. After that, your orders go to Alice Blue through your own account — you set the rules and stay in control.
Alice Blue says that its API is free, so there is no API subscription to buy. Alice Blue's brokerage on the trades you place is separate — see Alice Blue's pricing page for current charges.
Alice Blue API at a glance
- API — Alice Blue ANT API (official, REST based)
- API cost — Free — no subscription for API access
- Details MyAlgoMate asks for — API Key, API Secret, Client ID, Password, TOTP key
- Static IP — Required — one registered static IP per trading account
- Redirect URL — https://ant.aliceblueonline.com
- Where you create the API app — ant.aliceblueonline.com → Apps → API Key
- Sign-in — Automatic with your TOTP key — you do not type a 6-digit code each day
- Coding needed — None to connect — you fill in a form
What you need to collect
To connect Alice Blue, the broker login form in MyAlgoMate needs five details:
- API Key — the App ID from the app you create in the ANT dashboard
- API Secret — the App Secret from the same app — keep it confidential
- Client ID — your Alice Blue account id, the one you sign in with
- Password — your Alice Blue account password
- TOTP key — the secret key you saved when enabling TOTP
One more thing is set on Alice Blue's side rather than entered here: your whitelisted static IP.
Where to find each Alice Blue detail
- API Key — shown as the App ID once you create your app under Apps → API Key in the ANT dashboard
- API Secret — shown as the App Secret in the same app — copy it at once and keep it private
- Client ID — your Alice Blue account ID, the one you sign in with; it is also shown in the profile section of your Alice Blue account
- Password — the password you use to sign in to your Alice Blue account
- TOTP key — the secret key shown when you enable TOTP — choose the option that reveals the key if you cannot scan the QR code, and save it
- Static IP — not typed into MyAlgoMate — entered with Alice Blue in the ANT dashboard, with an IP Type
The ANT API is free
Alice Blue does not charge for the ANT API — API access is free of cost, so there is no subscription to buy and nothing to renew. You only need an active Alice Blue trading account. (Alice Blue's own brokerage charges for the trades you place are separate.)
Please check with Alice Blue for latest terms.
Static IP — required by Alice Blue
Since 1 April 2026, SEBI's retail algo-trading rules require a registered static IP for API order placement — Alice Blue only accepts API orders that originate from your registered static IP. Use your ISP's static IP if you run MyAlgoMate on your own machine, or your cloud machine's static IP if you run it on a server.
If you don't have a static IP, our Cloud Server for Algo Trading is a cloud machine built for algo trading and includes a static IP you can whitelist.
Redirect URL
When you create the app, set the Redirect URL to https://ant.aliceblueonline.com
Alice Blue connection checklist
- You have an active Alice Blue trading and demat account (activate F&O on it if you want to trade derivatives).
- You created an app at Apps → API Key in ANT, with the Redirect URL https://ant.aliceblueonline.com.
- You copied the API Key (App ID) and API Secret and stored them safely.
- You enabled TOTP and saved the secret key, not just the QR code.
- You decided which static IP you will use — your ISP's static IP if MyAlgoMate runs on your own computer, or the cloud server's static IP if it runs on a server.
- You registered that IP in the ANT dashboard. Alice Blue lets you register a main and a backup IP, and you can change them only once per week, so check the address before you save it.
- You entered API Key, API Secret, Client ID, Password and TOTP key in the MyAlgoMate broker login form and saved.
- If you trade more than one Alice Blue account, each account needs its own API app and its own static IP.
Keep your credentials private
Your API Secret, password and TOTP key are the keys to your own trading account — never share them with anyone. MyAlgoMate provides the automation technology; you set the rules and stay in control of your own trades.
Alice Blue — questions
Does MyAlgoMate work with Alice Blue for algo trading?
Yes. MyAlgoMate connects to Alice Blue through Alice Blue's official ANT API. You enter your API Key, API Secret, Client ID, Password and TOTP key in the broker login form, and whitelist a static IP with Alice Blue.
Is Alice Blue algo trading allowed?
Alice Blue provides an official API for algo trading. Since 1 April 2026 SEBI's retail algo-trading rules apply, which means API access through a unique key and a registered static IP. MyAlgoMate is software that places orders through your own Alice Blue account; whether and how you use it is your decision.
Do I need to pay for the Alice Blue API?
No. Alice Blue's ANT API is free of cost — there is no subscription for API access. You only need an active Alice Blue trading account. Alice Blue's own brokerage charges for the trades you place are separate.
Do I need to know coding to use Alice Blue with MyAlgoMate?
No coding is needed to connect. You create the API app in ANT, enable TOTP and fill in a form in MyAlgoMate.
Do I have to log in to Alice Blue every day?
No. Because you give MyAlgoMate your TOTP key, it signs in to your Alice Blue account for you, so you do not type a 6-digit code each morning.
Can I change my Alice Blue static IP?
Alice Blue allows a registered static IP to be updated once in 7 days. To change it sooner, ask Alice Blue to update it for you.
Where do I create the Alice Blue API key?
Log in to ant.aliceblueonline.com, open Apps, then API Key, and create a new app with the Redirect URL https://ant.aliceblueonline.com.
What Alice Blue details does MyAlgoMate need?
Five: your API Key and API Secret from the app you create in the ANT dashboard, your Client ID, your Password, and your TOTP key. You enter all five in the broker login form in MyAlgoMate. Separately, you must whitelist a static IP on Alice Blue's side.
Where do I get my Alice Blue API Key and Secret?
Log in to ant.aliceblueonline.com, go to Apps → API Key and create a new app (App Name + Redirect URL https://ant.aliceblueonline.com). Your API Key (App ID) and API Secret (App Secret) are shown once the app is created — copy both.
What Redirect URL should I set for my Alice Blue app?
Set it to https://ant.aliceblueonline.com
Do I need a static IP for Alice Blue API trading?
Yes — since 1 April 2026, Alice Blue only accepts API orders from a whitelisted static IP. Add it in the ANT dashboard (IP address + IP Type). Use your ISP's static IP if you run MyAlgoMate on your own machine, or your cloud machine's static IP if you run it on a server. If you don't have one, our Cloud Server for Algo Trading includes a static IP.
Automate on Alice Blue, the compliant way
Connect in minutes, automate without code, and stay in control — with a team that answers.