MyAlgoMate
// BROKER · MOTILAL - OPEN API

Algo trading with Motilal - Open API

Supported

Connect your Motilal - Open API account to MyAlgoMate and automate your execution — one-click orders, risk controls and fast exits, no coding required.

// HOW WE CONNECT

Connecting Motilal - Open API

MyAlgoMate connects to Motilal Oswal through their official MO API (Open API). You register an app on the MO API developer portal, copy your API Key, API Secret Key and TOTP secret key, whitelist a static IP as Motilal Oswal requires, and then enter your API Key, API Secret Key, Client ID, Password and TOTP key into the broker login form in MyAlgoMate.

// WHAT YOU CAN AUTOMATE

Use Motilal - Open API with

Your Motilal - Open API account works with all 6 of these MyAlgoMate products — plus custom automation of your own strategy.

// SETUP

Setting up Motilal - Open API

Step 1 — Register your app on the MO API portal

The MO API is free — Motilal Oswal lets you use the RESTful APIs at no cost, with no hidden charges and nothing to subscribe to. You only need an active Motilal Oswal trading account.
  1. Go to invest.motilaloswal.com/moAPI and log in with your Motilal Oswal credentials, accepting the API terms if you are prompted.
  2. Choose Create an API and fill in:
    • App Name — e.g. MyAlgoMate
    • Redirect URL — set it to https://invest.motilaloswal.com/
  3. Your API Key is issued when the app is registered. Copy it, along with your API Secret Key, from the API portal.

Step 2 — Copy your TOTP secret key

  1. Still on the MO API portal, open your profile dashboard.
  2. Copy the TOTP secret key — a 32-character value shown on the dashboard. This is the TOTP key MyAlgoMate needs.
  3. You can also add that key to an authenticator app (Google Authenticator, Authy, etc.) if you want 6-digit codes for your own logins.

Step 3 — Register your static IP (mandatory)

Motilal Oswal requires a registered static IP for placing orders through the MO API — under the SEBI retail algo framework in force since 1 April 2026, a registered static IP is mandatory for all clients using the API for order placement.

  1. In the MO API developer portal, register your static IPs. You get exactly two slots per application: a Primary IP (mandatory — all API orders are placed from it) and a Secondary IP (optional, as a backup).
  2. Which IP to use: if you run MyAlgoMate on your own machine, use your ISP's static IP; if you run it on a cloud machine, use that cloud server's static IP.
  3. If your IP changes later, you can update the registered static IP from the MO API developer portal.

No static IP or cloud machine yet? Our Cloud Server for Algo Trading is a cloud machine specialised for algo trading, and it comes with its own static IP you can whitelist.

Step 4 — Enter the details in MyAlgoMate

  1. Open the broker login form in MyAlgoMate and enter your API Key, API Secret Key, Client ID, Password and TOTP key, then save.

What you need to collect

To connect Motilal Oswal, the broker login form in MyAlgoMate needs five details:

  • API Key — issued when you register your app on the MO API portal
  • API Secret Key — shown alongside it on the portal
  • Client ID — your Motilal Oswal client id; enter it in capital letters
  • Password — your Motilal Oswal account password
  • TOTP key — the 32-character TOTP secret key from your profile dashboard on the API portal

One more thing is set on Motilal Oswal's side rather than entered here: you must register a static IP against your application.

The MO API is free

Motilal Oswal does not charge for the MO API — the RESTful APIs are free to use with no hidden cost, so there is no subscription to buy and nothing to renew. You only need an active Motilal Oswal trading account. (Motilal Oswal's own brokerage charges for your trades are separate and unchanged.)

Static IP — required by Motilal Oswal

Under the SEBI retail algo framework in force since 1 April 2026, a registered static IP is mandatory for all clients using the MO API for order placement. You get exactly two slots per application: a Primary IP, which is mandatory and is the IP all API orders are placed from, and an optional Secondary IP that acts as a backup. Use your ISP's static IP if you run MyAlgoMate locally, or your cloud machine's static IP if you run it on a server. You can update a registered IP later from the MO API developer portal.

If you don't have a static IP, our Cloud Server for Algo Trading is a cloud machine built for algo trading and includes a static IP you can whitelist.

Redirect URL

When you register the app, set the Redirect URL to https://invest.motilaloswal.com/

Keep your credentials private

Your API Secret Key, password and TOTP key are the keys to your own trading account — never share them with anyone. MyAlgoMate provides the automation technology; you set the rules and stay in control of your own trades.

// FAQ

Motilal - Open API — questions

Do I need to pay for the Motilal Oswal API?

No. Motilal Oswal's MO API is free — the RESTful APIs can be used at no cost with no hidden charges, so there is no subscription to buy. You only need an active Motilal Oswal trading account.

What Motilal Oswal details does MyAlgoMate need?

Five: your API Key and API Secret Key from the app you register on the MO API portal, your Client ID, your account Password, and your TOTP key. You enter all five in the broker login form in MyAlgoMate. Separately, you must register a static IP against your application on Motilal Oswal's side.

Where do I find my Motilal Oswal TOTP secret key?

Log in to the MO API portal and open your profile dashboard — the TOTP secret key is a 32-character value shown there. That key is what you enter in MyAlgoMate. You can also add it to an authenticator app if you want 6-digit codes for your own logins.

Do I need a static IP for Motilal Oswal API trading?

Yes — under the SEBI retail algo framework in force since 1 April 2026, a registered static IP is mandatory for all clients using the MO API for order placement. You get exactly two slots per application: a mandatory Primary IP and an optional Secondary IP as backup. Use your ISP's static IP if you run MyAlgoMate on your own machine, or your cloud machine's static IP if you run it on a server. You can update it later from the MO API developer portal. If you don't have one, our Cloud Server for Algo Trading includes a static IP.

What Redirect URL should I register for my Motilal Oswal app?

Set it to https://invest.motilaloswal.com/

Should I enter my Motilal Oswal Client ID in capitals?

Yes — Motilal Oswal expects the client id in capital letters, so enter it exactly that way in MyAlgoMate to avoid a failed login.

Automate on Motilal - Open API, the compliant way

Connect in minutes, automate without code, and stay in control — with a team that answers.