Connect Angel One with a static IP and fix error AG7002 — Tradetron Community
← Help Center

Connect Angel One with a static IP and fix error AG7002

Brokers 2 views

Angel One needs the static IP you buy on Tradetron registered in your SmartAPI app. The static IP is a paid add-on bought per broker on the Broker & Exchanges page: ₹100 for 1 month, ₹250 for 3 months or ₹1000 for 1 year. It is tied to one broker on one Tradetron account, so pick the right broker before you buy.

Set up the connection

  1. On Tradetron, open Broker & Exchanges, add Angel One with dummy credentials and save. This is only so the static IP option appears.
  2. Buy the static IP from the same page.
  3. Once bought, it shows on the Broker & Exchanges page like this:
  4. Go to https://smartapi.angelbroking.com/.
  5. Select New Login and log in to SmartAPI.

  6. Click Add App.
  7. Fill in the app:
  8. SmartAPI now shows your API key.
  9. Back on Tradetron’s Broker & Exchanges page, enter:
    • Angel User ID
    • Angel MPIN in the Password field
    • The API key from your new SmartAPI app
    • The TOTP from your authenticator app
  10. Save and generate the token.

If your broker needs a fresh token every trading day, generate it on the Broker & Exchanges page after 8:30 AM and before 9:00 AM.

Fix “Unregistered IP address” (AG7002)

If orders fail with:

angel order placement failed: {"success":false,"message":"Access denied: Unregistered IP address. Register your IP before retrying.","errorCode":"AG7002","data":""}

regenerate the token like this:

  1. Log out of the Angel One mobile app.
  2. Log out of the Angel One website.
  3. Log in to Tradetron in an incognito Chrome window.
  4. On Broker & Exchanges, clear the token, TOTP and refresh token fields.
  5. Enter a fresh TOTP and save.
  6. Edit again, enter another fresh TOTP and save.
  7. Generate the token.
  8. Make a fresh deployment and check.

:sparkles: Edited with AI from the original Tradetron article, checked against current docs (Oct 2026). Spot something wrong? Tell us in the Community.

Still stuck? Ask the community

Tradetron अब हिन्दी में भी उपलब्ध है हिन्दी में देखें Continue in English