Motilal Oswal
Add and validate your Motilal Oswal account in QUANT LEVELS.
Step 1 - Create an app
- Log in at invest.motilaloswal.com/moAPI and click Create an App.
-
Fill in the app form with:
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.Field Value Redirect URL https://quantlevelsdevloper.in/auth/motilaloswalCall Back URL https://quantlevelsdevloper.in/postback/motilaloswal?key=jByKSan5riiFoxHxtetuI2dkBRkOA_dm - Generate an API Key + API Secret, and note the TOTP Secret Key from the same page.
Step 2 - Add the account
- Go to Accounts → Add New Account.
- Select Broker as Motilal Oswal.
- Enter your MO Client ID, login Password, Date of Birth (used as MO's "2FA" field), TOTP Secret Key, API Key and API Secret.
- 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.