Broker Setup Guides / Motilal Oswal

Motilal Oswal

Add and validate your Motilal Oswal account in QUANT LEVELS.

SEBI's 2026 Algo rule requires a registered static IP for MO API order placement - use "Auto Assign" on the Add Account form for the Proxy URL, then register that same IP on MO's API portal too.

Step 1 - Create an app

  1. Log in at invest.motilaloswal.com/moAPI and click Create an App.
  2. Fill in the app form with:
    FieldValue
    Redirect URLhttps://quantlevelsdevloper.in/auth/motilaloswal
    Call Back URLhttps://quantlevelsdevloper.in/postback/motilaloswal?key=jByKSan5riiFoxHxtetuI2dkBRkOA_dm
    Primary IP: use the Proxy IP you'll assign on the Add Account form - register it here too, since MO requires it upfront on the app itself. Leave Secondary IP blank.
  3. Generate an API Key + API Secret, and note the TOTP Secret Key from the same page.

Step 2 - Add the account

  1. Go to Accounts → Add New Account.
  2. Select Broker as Motilal Oswal.
  3. Enter your MO Client ID, login Password, Date of Birth (used as MO's "2FA" field), TOTP Secret Key, API Key and API Secret.
  4. Save. Your access token auto-refreshes every day (MO tokens expire 6 AM daily per exchange rules).

Common Issues

Login fails even with correct password/TOTP

Confirm the Date of Birth field is filled in and matches the format MO expects (DD/MM/YYYY) - MO uses this as a second factor alongside TOTP, and a wrong or missing DOB fails silently as a generic login error.

Orders rejected after login succeeds

MO enforces the SEBI static-IP rule strictly for order placement (not just login). Re-check that the IP registered on MO's app portal exactly matches this account's current Proxy IP.

MARKET orders get rejected

MO's API does not support placing pure MARKET orders in some segments - if you hit this, the order gets automatically converted to a buffered LIMIT order around the last traded price by our Market Price Protection setting (Settings → Trading).

Copy trading on Motilal Oswal

MO's postback doesn't reliably cover manually-placed trades, so master detection for MO uses a live streaming connection we maintain per master account rather than the webhook alone.

FAQ

Why does MO need my Date of Birth?

MO's own login API requires it as a second-factor field alongside TOTP - it's sent directly to MO's servers for authentication, the same as logging in on MO's own app.