# Algo Trading in Angel One with Tradetron: Step-by-Step (2026)
Author: Huzefa Kudrati
Author URL: https://tradetron.tech/blog/author/huzefa-kudrati
Published: 2026-09-09
Updated: 2026-10-24
Meta Title: Algo Trading in Angel One with Tradetron (2026)
Meta Description: Set up algo trading on Angel One with Tradetron: SmartAPI app, TOTP, virtual server address, broker form, the daily Regenerate Token step and fixes for common errors.
URL: https://tradetron.tech/blog/how-to-do-algo-trading-in-angel-one-with-tradetron-step-by-step-guide-2026

To **do algo trading in Angel One with Tradetron**, create a SmartAPI app on Angel One's developer portal to get an API key, enable TOTP on your Angel One account, enable a Tradetron virtual server and add its address to your SmartAPI app, then enter your Angel One User ID, MPIN, SmartAPI key and a fresh TOTP code under **Broker & Exchanges** in Tradetron. After that, regenerate the session each trading morning.

:::takeaways
- One-time setup: TOTP on Angel One, a SmartAPI app (API key), your Tradetron virtual server's address added to that app, then the broker form in Tradetron.
- Angel One authenticates with User ID, MPIN, SmartAPI key and a TOTP code. There's no separate API secret.
- TOTP codes last about 30 seconds: generate one right before you submit.
- Sessions don't carry over: use Regenerate Token in Tradetron each morning by 8:30 AM.
- Angel One doesn't charge a subscription for SmartAPI access.
:::

## What you need before you start

| You need | Notes |
|---|---|
| An Angel One account with your segments enabled | Equity, F&O or Commodity, whichever you'll trade |
| A Tradetron account | [Sign up free](https://tradetron.tech/signup?utm_source=blog&utm_medium=post) |
| SmartAPI access and an app | Angel One's official API; the app gives you the SmartAPI key |
| TOTP enabled on Angel One | SmartAPI login uses a time-based one-time password |
| A Tradetron virtual server | Enabled on Angel One's edit page under Broker & Exchanges; its address goes on your SmartAPI app |
| Your Angel One User ID and MPIN | Entered in Tradetron with the key and TOTP |

## Why your SmartAPI app needs a registered address

Live orders on Angel One through Tradetron go out only from an address registered with your SmartAPI app. Your strategies run on Tradetron's servers, so your home or office address won't match. Enable a **virtual server** for Angel One on Tradetron's Broker & Exchanges page, then add the address Tradetron emails you to your SmartAPI app. Prices and the exchange rule are on [the virtual server page](https://tradetron.tech/virtual-server).

:::warning The silent failure
If the registered address is missing or doesn't match, your broker connection can look completely healthy in Tradetron while orders fail to reach the exchange. It is the most common reason for "connected but nothing trades". Zerodha has the same requirement.
:::

This is part of the wider tightening of API trading in India. SEBI's retail algo framework is now live; read [what retail traders need to do](https://tradetron.tech/blog/sebis-algo-id-mandate-is-now-live-what-retail-traders-need-to-do) for the order-rate and registration rules rather than relying on summaries.

## Part 1: On Angel One and SmartAPI

:::steps
1. **Enable TOTP** on your Angel One account from the TOTP setup page in your Angel One profile, confirming with the OTP sent to your registered email and mobile. Link it to an authenticator app.
2. **Log in to the SmartAPI developer portal** with your Angel One credentials.
3. **Create a new app.** Name it something recognisable, like "Tradetron", and note the **SmartAPI key** it generates.
4. **Add your virtual server's address.** In Tradetron, add Angel One under Broker & Exchanges with placeholder details, click its edit icon and then **Enable virtual server**. Enter the address Tradetron emails you in the app's primary IP field.
5. **Keep your User ID and MPIN handy** for Part 2.
:::

## Part 2: In Tradetron

:::steps
1. Log in to Tradetron and open **Broker & Exchanges** from the account menu.
2. Click **Add Broker** and choose **Angel One**, or edit the Angel One entry you added in Part 1.
3. Enter your Angel One **User ID**, **MPIN** and **SmartAPI key**.
4. Open your authenticator app, generate a **fresh TOTP code**, enter it and save straight away.
5. Tradetron validates the details and shows whether the broker was added.
:::

:::tip Generate the TOTP last
TOTP codes are valid for roughly 30 seconds. Fill in every other field first, then generate the code and submit immediately. A code generated a moment too early is the most common first-attempt failure.
:::

For an overview of what the integration supports, see Tradetron's [Angel One page](https://tradetron.tech/broker/angel-one). If your screen doesn't match these steps, the [help centre](https://help.tradetron.tech/en/) has the current walkthrough.

## How algo trading on Angel One via Tradetron works

![Flow diagram: your strategy goes to Tradetron, which sends orders through SmartAPI from your virtual server to Angel One and on to the exchange; fills and status come back to Tradetron](https://tradetron.tech/blog/media/d749ada1cccb9d4e740f.png "Strategy → Tradetron → SmartAPI → Angel One → exchange")

You build entries, exits, position sizing and risk limits in Tradetron's no-code builder. When conditions are met during market hours, Tradetron sends the order through SmartAPI. Angel One checks it against your margin, segment permissions and exchange rules and routes it to the exchange. Fills come back along the same path to your Tradetron dashboard.

Tradetron only has the permissions SmartAPI grants: it can place, modify and cancel orders while your session is active. It can't withdraw funds or change your account settings.

## The daily login: Regenerate Token

SmartAPI sessions don't carry over to the next trading day. **Each trading morning, by 8:30 AM** (the market opens at 9:15), generate a fresh TOTP code and use the **Regenerate Token** option in Tradetron. It takes about 30 seconds.

This reflects how Angel One secures API sessions, not a Tradetron limit. If you skip it, live orders on Angel One are blocked for the day. Backtests and Live Offline deployments carry on as normal.

:::stats
- **~30 sec** a TOTP code stays valid
- **8:30 AM** latest sensible time to regenerate the session
- **9:15 AM** NSE market open
:::

## Is Angel One's SmartAPI free?

Angel One doesn't charge a subscription for SmartAPI access; you pay the usual brokerage on executed orders. Other brokers price their APIs differently. Zerodha's Kite Connect, for example, has a free Personal plan for orders and a paid plan that adds live and historical market data.

| Broker API | Order placement | Market and historical data | Subscription |
|---|---|---|---|
| Angel One SmartAPI | Included | Included | None |
| Zerodha Kite Connect, Personal | Included | Not included | Free |
| Zerodha Kite Connect, paid | Included | Included | Monthly fee per API key |

Two caveats: your Tradetron plan is a separate cost from any broker API, and brokers change API pricing from time to time, so check the broker's own site before you budget around it.

## Why isn't my Angel One connection working?

| Symptom | Likely cause | Fix |
|---|---|---|
| Login fails on the first try | TOTP generated too early | Generate a new code and submit at once |
| Connected, but orders never reach the exchange | Virtual server address missing or mismatched on the SmartAPI app | Re-check it against the address in Tradetron's email |
| Authentication fails every time | Wrong User ID or MPIN | Re-enter both carefully |
| Broker shows added, but no live orders today | Daily Regenerate Token not done | Regenerate with a fresh TOTP |
| SmartAPI key stops validating | App problem on Angel One's side | Recreate the app in the developer portal and update the key |
| An order type is rejected | The broker or exchange doesn't accept that order type for API orders | Check the rejection message and switch the leg's order type |
| Connected, but orders don't execute | Margin, or segment not enabled | Check funds and segment permissions |

Each rejection message is in the deployment's **Notification Log** on Tradetron's Deployed tab. If none of the above helps, Tradetron's [helpdesk](https://help.tradetron.tech/en/) can check the connection, and Angel One support can confirm whether your SmartAPI key is active.

## Test before you go live

:::steps
1. Connect the broker and complete the morning login.
2. Deploy a simple strategy **Live Offline**: the strategy runs and records every trade, but nothing is sent to the exchange.
3. Once it behaves as you expect across several sessions, deploy it **Live Auto** at 1x with Angel One selected.
4. Watch the first live orders in the Notification Log, then scale up gradually.
:::

## Is algo trading legal on Angel One?

Yes. Algo trading through a broker's official API is legal for retail traders in India, and SmartAPI is Angel One's sanctioned connection method. Under SEBI's retail algo framework, API orders are traceable through the broker and placed from an address registered with the broker. Details are in [SEBI's algo rules for retail traders](https://tradetron.tech/blog/sebis-algo-id-mandate-is-now-live-what-retail-traders-need-to-do) and [is algo trading legal in India](https://tradetron.tech/blog/is-algo-trading-legal-in-india-everything-you-need-to-know).

:::tradetron Automate Angel One trading without code
Once Angel One is connected, Tradetron places, modifies and manages orders on your account from the rules you set: entries, exits, stop losses and sizing, across the segments enabled on your account. Build your own strategy or deploy one from the marketplace. Step-by-step: [how to deploy a strategy](https://tradetron.tech/blog/how-to-deploy-strategy-in-tradetron).

[Start free](https://tradetron.tech/signup?utm_source=blog&utm_medium=post) [Browse ready-made strategies](https://tradetron.tech/strategies?utm_source=blog&utm_medium=post)
:::

Using other brokers too? See [Zerodha](https://tradetron.tech/blog/how-to-connect-zerodha-with-tradetron-step-by-step-guide-2026), [Dhan](https://tradetron.tech/blog/how-to-connect-dhan-with-tradetron) or the [general broker setup guide](https://tradetron.tech/blog/how-to-connect-your-broker-to-tradetron-a-step-by-step-automated-trading-setup-guide).

## Frequently asked questions

### How do I do algo trading in Angel One with Tradetron?

Enable TOTP on Angel One, create a SmartAPI app to get an API key, add your Tradetron virtual server's address to that app, then enter your User ID, MPIN, SmartAPI key and a fresh TOTP code under Broker & Exchanges in Tradetron. Deploy a strategy with Angel One selected as the broker.

### Is Angel One's SmartAPI free?

Angel One doesn't charge a subscription for SmartAPI access. You pay the usual brokerage on executed orders. Your Tradetron plan is a separate cost.

### Do I need a static IP to use Angel One with Tradetron?

Your SmartAPI app needs a registered IP address. With Tradetron that is your Tradetron virtual server's address, not one you buy: enable the virtual server on Angel One's edit page under Broker & Exchanges and add the address Tradetron emails you to your SmartAPI app.

### Do I need to log in to Angel One every day?

Yes. SmartAPI sessions last one trading day. Each morning, generate a fresh TOTP and use Regenerate Token in Tradetron, ideally by 8:30 AM.

### Is coding required for algo trading on Angel One?

No. You enter the SmartAPI key, User ID, MPIN and TOTP in Tradetron's broker form, and strategies are built in the no-code builder.

### Why is my Angel One connection not working?

The usual causes are a TOTP code that expired before you submitted, a wrong MPIN or User ID, a missed morning login, or a missing or mismatched address on your SmartAPI app.

### Can I test on Angel One before trading with real money?

Yes. Deploy Live Offline first: the strategy runs on live prices and records every trade, but nothing is sent to the exchange.
