FlatTrade

Add and validate your FlatTrade account in AutoTrader Web.

Account setupBroker independentTOTP login
In short

To add a Flattrade account in AutoTrader, you need three things from Flattrade: an API Key, an API Secret, and a TOTP Key. Generate the API Key and Secret on the Flattrade Wall, copy the TOTP Key from your Flattrade profile, then add the account under Accounts -> Trading Accounts using the platform KAMBALA_FLAT_IPV6. Flattrade supports IPv6, so your static IP is a Premium static IPv6 at Rs 100 per month, and you register both the primary and the backup address with Flattrade.

This page shows how to set up a Flattrade broker account in AutoTrader Web.

Demo video

Setup overview

The setup has three steps:

  1. Generate your API Key and API Secret on the Flattrade Wall.
  2. Get your TOTP Key from the Flattrade profile.
  3. Add the account in AutoTrader Web and validate it.

Step 1: Generate the API

  1. Login to Wall: https://wall.flattrade.in
  2. Go to Pi in the top menu bar and click CREATE NEW API KEY, then enter:
    • App Name: MyTradingApp
    • Short Name: MyTradingApp
    • Redirect Url: https://webx.stocksdeveloper.in/auth/flattrade
    • Postback Url: https://apix.stocksdeveloper.in/postback/flattrade
    • Description: Stocks Developer
    • Agree to the terms and click the CREATE button.
  3. Your API Key and Secret Key are now available.

Step 2: Get the TOTP Key

  1. Login to https://web.flattrade.in/
  2. Click your login id in the top right corner to open the Profile section.
  3. Click Security.
  4. Click TOTP.
  5. You will see a QR code. You can scan it using the Google Authenticator app on your phone. This is needed for login.
  6. What you actually need is the TOTP Key. Click the copy icon and save the key somewhere, such as a notepad.

Step 3: Add your account in AutoTrader Web

  1. Go to the AutoTrader Web menu (Accounts -> Trading Accounts).
  2. Click the Create button.
  3. Select Broker as Flattrade.
  4. Select KAMBALA_FLAT_IPV6 as the platform. This is the recommended choice and is already selected for you.
  5. Enter your Flattrade login id.
  6. Enter your Flattrade password.
  7. Enter the TOTP Key (obtained in Step 2 above).
  8. Add the API Key (obtained in Step 1 above).
  9. Add the API Secret (obtained in Step 1 above).
  10. Click Validate and Save.

That’s it. You have added your Flattrade account. Do not forget to read these known limitations.

Screenshots

Flattrade API Key

Flattrade – API Key

Flattrade TOTP Key

Flattrade – TOTP Key

Static IP Setup

Flattrade supports IPv6 static IPs, so your Flattrade account uses a Premium static IPv6₹100 per month, inclusive of all taxes. It is the cheapest and fastest option we offer, and you get two addresses for that one price: a primary and a backup.

Register both addresses with Flattrade. Add them on the same Flattrade screen where you would put an IP. Registering the backup as well costs nothing extra, and it means that if the primary ever has a problem you are not left waiting for a new IP.

Because Flattrade supports IPv6, we do not offer the Standard IPv4 pool option on it. If you specifically need an IPv4 address, the only route is to bring your own IP, which we never charge for — though we do not recommend it here, since IPv6 is faster and costs less.

The full guide, including how to buy the IP and how billing works:

Static IP Setup — set up a static IP or bring your own (BYOIP)

Already using Flattrade on IPv4?

Existing Flattrade accounts were set up on the older KAMBALA_FLAT_IPV4 platform. That platform has been retired, so you can no longer renew an account on it. The account keeps trading until its current licence runs out, but any recharge for it will be declined — move it to IPv6 to keep it active.

Moving is also cheaper (₹100 instead of ₹200 per month) and faster.

To move an existing account:

  1. Open the account under Accounts → Trading Accounts and change the platform to KAMBALA_FLAT_IPV6.
  2. A note appears asking you to save the platform change first. Click Save platform change and confirm — the account is saved and opens again on the same screen.
  3. Click the Static IP button and take your Premium static IPv6.
  4. Register the new primary and backup addresses with Flattrade.
  5. Place a small test order to confirm everything works.

Your old IPv4 static IP is released automatically when you switch, and you are not charged for it again.

If you try to recharge before moving, the recharge is declined with SD-ERR-154.

Bracket and cover orders on FlatTrade

Whether FlatTrade offers a bracket or a cover order of its own — and in which segments — is set by the broker, and it can change. Many Indian brokers withdrew bracket orders in 2020 and never brought them back.

You can place one anyway. An AutoTrader bracket order (AT_BO) attaches a target and a stop-loss to your FlatTrade order, with an optional trailing stop that follows the price in your favour and never moves back. An AutoTrader cover order (AT_CO) is the same thing with a stop-loss only. Your entry reaches FlatTrade as an ordinary intraday order — the one thing every broker accepts — and AutoTrader Web watches the price and sends the closing order when your level is reached.

Place one from the order window, from your own code, or from a chart alert. It is intraday only, it does not give you the extra intraday margin some brokers give on their own bracket orders, and the position is squared off automatically a short while before the market closes.

Read the risk before you use it. A stop-loss decides when we try to exit — it does not decide the price you get. A sudden move can take the price straight past your level, so your loss can be larger than the stop-loss you set. The full explanation, and the one-time terms you agree to before your first one, are on Bracket & Cover Orders.

Frequently asked questions

Does AutoTrader Web support Flattrade?

Yes. Flattrade is fully supported. You can connect one or many Flattrade accounts and monitor live P&L, holdings and positions, place and manage orders, and copy trade across all of them from one screen, on web or mobile.

Can I copy trade with Flattrade?

Yes. You can copy trade with Flattrade in two ways — PMS copy from our terminal and master-child copy in the background — across accounts and brokers, with per-account sizing. You set up and control everything.

Can I manage multiple Flattrade accounts together?

Yes. Add as many Flattrade accounts as you like and see consolidated P&L, holdings and positions live, and trade across all of them at once.

How much does it cost to use Flattrade with AutoTrader Web?

AutoTrader Web is ₹295 to ₹495 per account per month, with all taxes included, and a free 1-month trial. Your account also needs a static IP — this is required for every broker, not optional. Flattrade supports IPv6, so you get a Premium static IPv6 at ₹100 per month, which is our cheapest and fastest option and includes a backup address free. You can also bring your own IP, which we never charge for. All prices include tax. If Flattrade charges separately for API access, that fee is set by the broker.

Does Flattrade support an IPv6 static IP?

Yes. Flattrade supports IPv6 on its trading API, so a Flattrade account uses a Premium static IPv6 at ₹100 per month — cheaper and faster than an IPv4 address. It comes as two addresses, a primary and a backup, for that one price. Register both with Flattrade so a spare is always ready. Select the platform KAMBALA_FLAT_IPV6 when you add the account.

Static IP setup →

I already use Flattrade on IPv4. Should I move to IPv6, and will I be charged twice?

Yes, you need to move. The older KAMBALA_FLAT_IPV4 platform has been retired, so an account on it can no longer be renewed — it trades until its current licence runs out, and any recharge for it is declined. IPv6 is also faster and costs ₹100 per month instead of ₹200. To move, change the platform to KAMBALA_FLAT_IPV6, save the platform change when the screen asks you to, take your Premium static IPv6, register the new primary and backup addresses with Flattrade, and place a small test order. Your old IPv4 static IP is released automatically when you switch and is not charged again.

Static IP setup →

Flattrade says my API Key is not valid — how do I fix it?

This is your Flattrade API Key or Secret, generated on the Flattrade Wall — not your AutoTrader Web API key. Regenerate the API Key and Secret on the Wall, copy each value exactly with no extra spaces, then paste them into your account under Accounts -> Trading Accounts and click Validate & Save. Follow the setup steps on this page.

Can I place a bracket order on FlatTrade?

Yes. You can place an AutoTrader bracket order (AT_BO) or cover order (AT_CO) on your FlatTrade account, whether or not FlatTrade offers one of its own. It attaches a target, a stop-loss and an optional trailing stop, and it works because your entry goes to FlatTrade as an ordinary intraday order while AutoTrader Web watches your levels. It is intraday only and gives no extra margin, and a sudden price move can still take your exit past the level you set.

Bracket & cover orders →

Next steps

Was this page helpful?

Last updated 18 August 2026