IIFL

Add and validate your IIFL account in QUANT LEVELS.

IIFL requires manual browser re-authorization EVERY trading day - the session token expires at midnight regardless of when it was generated, and IIFL documents no headless password/TOTP login API. This is the same limitation Alice Blue has, just with a much shorter (same-day, not ~60-day) window.

Step 1 - Create your API App

  1. Log in to developers.iiflcapital.com as an Individual Trader.
  2. Click Create App, give it any name, and paste https://quantlevelsdevloper.in/auth/iifl as the Redirect URL.
  3. Set the Static IP to this account's assigned Proxy IP.
  4. Copy the generated App Key and App Secret.

Step 2 - Add the account

  1. Go to Accounts → Add New Account.
  2. Select Broker as IIFL.
  3. Enter your IIFL Client ID, the App Key and App Secret from Step 1.
  4. Save.

Step 3 - Authorize (every trading day)

  1. Open the saved account from Accounts → Edit.
  2. Click the Authorize with IIFL link that appears there.
  3. Log in on IIFL's own page with your trading credentials + OTP/TOTP.
  4. You'll be redirected back automatically once authorized - the account is now live until midnight tonight.
Do this again first thing every trading morning, before market open, or this account won't sync/copy-trade that day.

Copy trading on IIFL

Master order detection uses IIFL's own real-time order/trade update bridge (a separate MQTT-based service, not a plain webhook), maintained per master account.

FAQ

Is this the same as IIFL's old XTS/BLAZE API?

No - this integration uses IIFL's newer "ONT" API. If your account is still on the older XTS API, contact your IIFL Relationship Manager to have it migrated first; the ONT endpoints used here won't work on an XTS-only account.

Can bracket/cover orders be placed on IIFL?

IIFL's own order API does document BO/CO order complexity, but this platform routes copy-trades as plain intraday orders and uses its own synthetic AT_BO/AT_CO (target + stop-loss watcher) for bracket/cover behaviour instead, for consistency with every other broker here.