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
- Log in to developers.iiflcapital.com as an Individual Trader.
- Click Create App, give it any name, and paste
https://quantlevelsdevloper.in/auth/iiflas the Redirect URL. - Set the Static IP to this account's assigned Proxy IP.
- Copy the generated App Key and App Secret.
Step 2 - Add the account
- Go to Accounts → Add New Account.
- Select Broker as IIFL.
- Enter your IIFL Client ID, the App Key and App Secret from Step 1.
- Save.
Step 3 - Authorize (every trading day)
- Open the saved account from Accounts → Edit.
- Click the Authorize with IIFL link that appears there.
- Log in on IIFL's own page with your trading credentials + OTP/TOTP.
- 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.