QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free

QUANTSAPP ORDERS API

One API for every broker

Connect your broker accounts once. Then place orders across all of them, get combined positions and every order update on a single WebSocket - with the same code for all 20 brokers.

  • REST + WebSocket
  • Python SDK
  • 20 brokers
  • Multi-account
  • NSE F&O
your_algo.pyex.place_order(  accounts=[A, B],  legs=[...])
Orders APIRESTWebSocket
+14 more
20brokers, one API
1 socketfor every order update
REST + WSuse either, or both
₹250a month + GST for a shared static IP

WHY ONE API

Every broker API is different. Yours doesn’t have to be.

Integrating broker APIs yourself

  • A different login, order format and error codes for every broker
  • A separate order-update stream for each account
  • Positions merged by hand across accounts
  • Code breaks when a broker changes its packets
  • Changing brokers means a new integration

With the Quantsapp Orders API

  • One login, one order format, one set of responses
  • Every update from every account on one WebSocket
  • Combined positions and order status in one call
  • Broker changes handled by Quantsapp
  • Change brokers by changing one value

WHAT YOU GET

Built for algo traders and multi-account order management

01

One API, every broker

The same requests and responses for all 20 brokers. No broker SDKs, no broker-specific order formats.

02

REST and WebSocket

Every call over REST (HTTP/1.1, 2 and 3) or over a WebSocket - pick what suits your latency and stack.

03

One socket for every update

Order updates from all your accounts, at every broker, arrive on a single WebSocket, tagged with the account.

04

Many accounts, many brokers

Several accounts with the same broker - yours and your family’s - and accounts across brokers, side by side.

05

Place once, everywhere

One place-order request goes to several accounts at once, with its own lot multiplier for each.

06

Combined positions

Get positions account by account or combined, and order status for all accounts, without stitching broker responses.

07

Multi-leg with margin benefit

Send a whole strategy in one request; buy legs can go first so the hedge margin applies to the sell legs.

08

Broker changes? Not your problem

When a broker changes its packets or endpoints, Quantsapp absorbs it. Your code keeps working.

09

Switch brokers, keep your code

The broker is one value in the account id. Move brokers and the rest of your integration stays as it is.

A FEW LINES

One order, two brokers, one stream

Log in with your API key, place a two-leg spread in two accounts at two brokers with different lot multipliers, and receive every order update on one callback.

Python SDK docs · GitHub · REST & WebSocket docs

import quantsapp

session = quantsapp.Login(
    api_key="<API_KEY>", secret_key="<SECRET_KEY>",
).login()

# Every order update, from every account, arrives here (one socket)
def on_update(update):
    print(update)

ex = quantsapp.Execution(
    session_context=session, order_updates_callback=on_update,
)
v = ex.variables

# One bull call spread, placed in two accounts at two brokers
ex.place_order(
    broker_accounts=[
        {"broker": v.Broker.ZERODHA, "client_id": "<CLIENT_1>", "lot_multiplier": 1},
        {"broker": v.Broker.DHAN, "client_id": "<CLIENT_2>", "lot_multiplier": 2},
    ],
    exchange=v.Exchange.NSE_FNO,
    product=v.Order.ProductType.NRML,
    order_type=v.Order.OrderType.LIMIT,
    validity=v.Order.Validity.DAY,
    margin_benefit=True,   # buy legs go first
    legs=[
        {"qty": 65, "price": 120.5, "instrument": "NIFTY:27-Oct-26:c:23200", "buy_sell": "b"},
        {"qty": 65, "price": 62.0,  "instrument": "NIFTY:27-Oct-26:c:23400", "buy_sell": "s"},
    ],
)
wss://server.quantsapp.com/order-updates
  • dhan,110073SELL 130 · NIFTY 27-Oct 23400 CEpartial
  • zerodha,AB1234SELL 65 · NIFTY 27-Oct 23400 CEplaced
  • dhan,110073BUY 130 · NIFTY 27-Oct 23200 CEcompleted
  • zerodha,AB1234BUY 65 · NIFTY 27-Oct 23200 CEcompleted

ONE WEBSOCKET

Every order update, from every account, in one place

Fills, partial fills, rejections and cancellations from all your accounts - at every broker - stream on a single socket, each tagged with its broker account. No per-broker sockets to keep alive, no polling.

Orders placed through the API also show in the Quantsapp app, next to everything else.

USE IT FOR

Who it’s for

Algo traders

Run your strategy in your own code and let the Orders API handle execution, order status and positions for every account.

Family and multiple accounts

Place the same trade in all your accounts with one request, and see their orders and positions together.

Traders with more than one broker

Keep one integration while you trade with several brokers - or move between them.

SUPPORTED BROKERS

Works with 20 brokers

GET STARTED

From sign-up to first order

  1. Connect your brokersIn Quantsapp, Trade → Brokers: connect every account you want to trade (guided video for each broker).Connect a broker →
  2. Get your API keyCreate your API key and secret in Quantsapp. Keep them private.Create API keys →
  3. Set up a static IPNeeded to place orders: Quantsapp’s shared IP from ₹250/month + GST, or your own.
  4. Write your codepip install quantsapp, or call the REST and WebSocket endpoints from any language.API docs →

PRICING

Pay per order, or go unlimited

Pay as you go₹20per successful order
Unlimited · yearly₹1,499/month, billed yearly
Unlimited · monthly₹2,999/month
Shared static IP (needed to place orders)₹250/month + GST, per broker
Dedicated static IP₹750/month + GST, all brokers

Covers NSE F&O for now. Reading orders, positions and order updates needs no static IP.

Write it once. Trade it with every broker.

Connect your broker, create your API key and place your first order through the Orders API.

Frequently asked questions

What is the Quantsapp Orders API?

One API for 20 Indian brokers. Connect your broker accounts to Quantsapp once, then place, modify and cancel orders, read order books and positions, and receive every order update from every account on a single WebSocket - with the same code whichever broker the account is with.

Which brokers does it support?

Zerodha, Upstox, Dhan, 5Paisa, Motilal Oswal, Fyers, Choice, Nuvama, Aliceblue, Sharekhan, Angel, Kotak Neo, Groww, ICICI Direct, HDFC Securities, IIFL, INDstocks, Jainam, Paytm Money, Axis Direct.

REST or WebSocket?

Both. Orders, positions and account calls are available over REST (HTTP/1.1, HTTP/2 and HTTP/3) and over a WebSocket; order updates from all your broker accounts stream on one WebSocket.

Can I place one order in several accounts at once?

Yes. A single place-order request can go to several accounts - across brokers and several accounts with the same broker, such as family accounts - with a lot multiplier per account. Multi-leg orders can send buy legs first to get the margin benefit.

Do I need a static IP?

Yes, to place orders. SEBI rules require orders sent through an API to come from a static IP. Quantsapp’s shared static IP costs ₹250/month + GST per broker (a dedicated IP is ₹750/month + GST), or you can use your own. Reading orders and positions needs none.

What if my broker changes its API?

Quantsapp handles it. Your code talks to one Quantsapp format, so when a broker changes its packets or endpoints, the change is absorbed on Quantsapp’s side and your code keeps working.

Can I switch brokers without rewriting my code?

Yes. The broker is just part of the account id ("broker,client_id") in your requests. Connect the new broker, change that value, and the rest of your code stays the same.

How much does the Orders API cost?

₹20 per successful order placed through the API, or unlimited orders for ₹1,499/month on the yearly plan (₹2,999 on the monthly plan). Placing orders also needs a static IP (from ₹250/month + GST).

Which markets does it cover?

NSE F&O (futures and options on NSE) for now.

Is there a Python SDK?

Yes - pip install quantsapp. It is open source on GitHub and covers login, orders, positions and the live order-update stream. The REST and WebSocket docs also include JavaScript examples.

Can I use it for algo trading?

Yes. Run your strategy in your own code and use the Orders API for execution and order management. Orders placed through the API also show in the Quantsapp app.

Broker names are trademarks of their owners and are used only to identify the brokers Quantsapp connects to. Derivatives trading carries substantial risk. Disclaimer

Log in or sign up

Enter your mobile number. New to Quantsapp? The same OTP creates your free account.

+91

By continuing you agree to the Terms of Use and Privacy Policy.