Built for Indian equity investors

Leave the chores to Margin.
Keep the judgement.

Margin keeps your books and keeps your valuations, allocation and target prices in order, so the decisions are all that's left to you. Your AI agent works from the same data.

Margin in two minutes

Holdings and trades from

Zerodha Groww Upstox AngelOne Any broker, generic CSV · NSE BSE

Why Margin

The problems Margin solves

Why Margin in three minutes

Buy, hold, add, reduce or sell knowing the implied return

The problem

Whether to buy, hold, add or sell depends on what a stock’s valuation says at today’s price, and the price moves every day. With the DCF in a spreadsheet, the price in the broker app and the stock list somewhere else, you stitch the three together by hand. A stock bought for a 15 percent expected return may offer only 6 percent after a sharp rally, with nothing about the business changed, and it looks the same as a holding that is still working.

How Margin solves it

Margin keeps your holdings, your stock lists and a saved DCF for each stock together and reads them against the latest price. The dashboard shows the expected return each valuation implies today beside the Buy, Add, Reduce or Exit prices you set.

Workflow

How it works

1

Bring in what your broker exports

Pick the trading account, then upload its holdings and tradebook from Zerodha, Groww, Upstox or AngelOne, or from any other broker through the generic CSV layout. The dividend statement and the funds statement come in as uploads of their own, and the consistency check names any split or bonus the tradebook never recorded before you trust a return.

Several accounts, across brokers, read as one portfolio

Video walkthrough

API & AI Agents

Point an agent
at your portfolio

Create an API token and an AI agent, or any script of your own, can carry the whole bookkeeping side: import holdings and tradebooks, record a year of dividends, send the funds statement, build and name lists, set target allocation, and mark a stock studied, tracked or rejected as you screen.

It can do the valuation work too. An agent can compute a DCF from assumptions you give it, solve a reverse DCF for the growth the current price implies, save a forward projection against a stock, and move that projection to another quarter. Publishing a stock story video to YouTube runs through the same token.

Agents read their instructions from a machine-readable llms.txt that spells out what each upload replaces and what it leaves alone, so a skill works against the current contract rather than a copy of it. The recipes page sets out exactly what a token can read, what it can write, and what stays closed to it.

Personal API tokensllms.txtValuation from your assumptionsLimited readsRevoke anytime
agent · session

# point your agent at

go.marginapp.in/llms.txt

Authorization: Bearer mgn_••••••••

POST /web/stockOfInterest/upload/json

POST /web/dividends/upload/csv

POST /web/fundsLedger/upload/json

POST /web/projection/dcf

142 holdings imported across 3 accounts
FY 2026 dividends: 2 stocks unmatched, nothing written yet

Data Security

Your portfolio data
stays yours

Margin needs your holdings and trades to do its job, and very little else about you. The funds statement from your broker is read on your own computer, so the file and the bank details in it never reach us. Your name and email are kept in a separate locked vault, so the portfolio records on our side carry no name.

  • We never store your broker login
  • Your broker’s funds statement is read on your computer and never uploaded
  • Your name and email are locked away from your portfolio
  • Only you can see your portfolio, and we never share it
How we protect your details
On your computer Funds statement your bank details stay here only dates and amounts At Margin Your portfolio holdings trades amounts Locked vault your name your email encrypted kept apart if our records ever leaked, they would show no names

Questions

Before you sign up

Does Margin connect to my broker account?

No. You download holdings, trades, dividends and the funds statement from your broker and upload them, and Margin never asks for a broker login or holds one. If you would rather not do that by hand, you can create an API token and point an agent of your own at it, and even then your broker credentials stay on your machine.

Are the prices live?

No. Prices come from the NSE and BSE end of day files, so they do not move during the session. Margin shows the date of the quote beside any value it reports, and it tells you when a total is missing a stock it has no price for.

I hold the same stock at two brokers. Does that work?

Yes. Send a file per account and Margin merges them, adding the quantities and averaging the cost by quantity. Each holding still shows the split by broker underneath, and you can ask for returns, gains and allocation one trading account at a time.

Does it cover mutual funds or US stocks?

No. Margin covers listed equities on NSE and BSE. Everything in it, from the valuation grid to the capital gains rates, is built for that and would be wrong applied elsewhere.

Does Margin tell me what to buy?

No. There are no recommendations, no target prices of ours and no tips. Margin computes what your own assumptions imply and shows it against the market price, and every anchor on a stock is one you set yourself.

Can I delete what I have uploaded?

Yes. Holdings, trades, dividends and the funds statement can each be cleared from inside the app, in whole or a year or a broker at a time, and you can delete the account and everything in it. An API token deliberately cannot do any of that.

Pricing

Inaugural plan

Free

No credit card required.

  • Unlimited stocks
  • DCF & Reverse DCF valuations
  • Reference ratios & what-if prices
  • XIRR by period, capital gains & tax
  • Dividends recorded per financial year
  • Funds statement, net investment & money-weighted return
  • Custom price anchors
  • Stock lists & tags
  • Rich notes per stock
  • NSE & BSE support
  • Import from Zerodha, Groww, Upstox, AngelOne or a generic CSV
  • Research boards for your reading cycle
  • Consistency check and unrealised gains
  • API tokens for AI agents
  • Research library & Screen tool
Get started for free

Margin is free while it is young, and pricing arrives in a few months. We will tell you before any of it takes effect.