Read your Zerodha or Angel One order book in Excel with MarketXLS India. Connect the relevant broker and use its order-list function, with an order-count function for a compact summary.
Try it in your own spreadsheet
Get the free MarketXLS sample workbook (.xlsx).
No account needed. MarketXLS live data requires a paid plan. Preview workbook
Get MarketXLS India: plans and subscription · See the India Excel add-in
Start with this formula
After connecting the required broker in the India add-in, enter:
=MXLSIN.ZerodhaGetOrders()
Use the example as a starting point and replace its instrument, date range or cell references with your own inputs. Historical dates in examples are sample periods; expiry-specific symbols must refer to a valid contract.
Set up the worksheet
- Open Excel and install MarketXLS India from the add-in marketplace.
- Sign in with your MarketXLS India account. For broker data, connect Zerodha or Angel One using the add-in panel. Use the broker named by a broker-specific formula.
- Enter the formula in an empty area. Leave adjacent cells clear for any table or multi-cell output.
- Confirm the instrument and settings before extending the worksheet.
Use a dedicated sheet for the returned orders and leave room for new rows. Keep broker name and the time you retrieved the view visible. If you connect a different broker, use that broker's functions rather than assuming the account view changes automatically.
Build the working example
Review status and filled quantity before treating an order as a completed trade. Rejected, cancelled and partially filled orders can all be relevant to monitoring. Use the broker's returned fields to build filters and totals appropriate to the view.
Functions and syntax
These examples use the India namespace, MXLSIN.. Square brackets in a syntax line indicate optional arguments; do not type the brackets into Excel. Keep text arguments in quotation marks and use cell references when you want editable inputs.
ZerodhaGetOrders
Lists the orders in your connected Zerodha Kite account.
Syntax:
MXLSIN.ZerodhaGetOrders()
Example:
=MXLSIN.ZerodhaGetOrders()
ZerodhaOrderCount
Returns the number of orders in your connected Zerodha Kite account.
Syntax:
MXLSIN.ZerodhaOrderCount()
Example:
=MXLSIN.ZerodhaOrderCount()
AngelOneOrders
Lists the orders in your connected Angel One account.
Syntax:
MXLSIN.AngelOneOrders()
Example:
=MXLSIN.AngelOneOrders()
AngelOneOrderCount
Returns the number of orders in your connected Angel One account.
Syntax:
MXLSIN.AngelOneOrderCount()
Example:
=MXLSIN.AngelOneOrderCount()
Check the result
An order book is not a complete performance or tax report. It can differ from an execution-level trade log, and its available period is broker-dependent. These functions read account data; they do not place or modify orders.
If Excel reports #NAME?, confirm the India add-in is loaded and the function name is spelled correctly. If a table reports #SPILL!, clear the cells in its output area. For missing broker data, check the connection in the add-in panel, verify the symbol, and test one request before expanding the sheet. Do not replace an error with zero when zero would change your analysis.
Why might the order count differ from my trade count?
Orders and executions are different records. An order may not fill or may fill in parts. Confirm the meaning of each field before reconciling totals.
Get this working in your Excel
Choose a MarketXLS India subscription, install the India add-in, and follow the steps above. The pricing page lists the current subscription options; broker access requirements are separate from the spreadsheet formulas.
Use the India function library for the complete parameter reference, or contact the India team with the formula, instrument and error message if you need setup help. Never send broker passwords or access tokens.
Continue with the India Excel workflow series for related guides.
