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

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

DCF Valuation

Project earnings forward,
find the fair value

DCF in Margin lets you build a full financial model, projecting revenue growth, operating margins, depreciation, tax, capex and working capital year by year. Discount the resulting free cash flows back to today for an intrinsic value, and read it against the market price to decide whether the stock is worth buying, holding, or leaving alone.

Fill a ratio down the projection years with a drift per year in basis points instead of typing each cell. Keep your own reference ratios beside the model, so the multiple or margin you judge a business by is on screen while you set the assumption. Attach a note to the valuation recording what you were underwriting and why.

A what-if price lets you override the quote, by an amount or by a percentage, and watch enterprise value, market cap and the summary move with it, without that price being saved into the valuation. Every valuation stays anchored to the quarter it was valued for, so a number you look at a year later still tells you what it was built on.

What-if priceReference ratiosFill down a rowNotes on a valuationFilter by listSearch by name

DCF Model Inputs

Revenue Growth Rate

Filled down, −50 bps a year

18%

Operating Margin

Stabilising assumption

22%

Discount Rate

Market cap ₹18,400 Cr

12%

Reference Ratios

Sector median P/E 32
Own 5-yr median EV/EBITDA 18

Intrinsic value per share, valued for Q1 FY 2026-27

₹1,840

Against the quoted ₹2,340, a 22% premium to fair value

What-if price ₹2,100 (−10.3%) is applied to the summary and is not saved with the valuation.

Reverse DCF

Know the return
today's price leaves you

Reverse DCF starts from the price. Enter the earnings per share and Margin divides the price by it for the PE you would be buying at. Add the holding period you have in mind, the PE you expect to sell at and the earnings growth you believe in, and Margin works out the yearly return you would earn buying at that price.

State the growth as a yearly rate, or as the EPS or profit you expect at the end of the period, and Margin converts between them. When the return falls short of what you want from the stock, the price already asks for more growth than you are prepared to assume.

Try Reverse DCF

Reverse DCF Calculator

Holding period

How long you intend to hold

5 yrs

Current PE

Today's price over the EPS you enter

30

Exit PE

What you expect to sell at

25

EPS growth

A year, or the EPS or profit you expect in year five

14%

Annualised return

10.0%

A year, for the five years you hold it, if the growth and exit PE hold

Short of the 15% you want from the stock

Returns & Tax Summary

Since inception Last 12 months Last 3 years CY 2025 FY 2025-26

XIRR (annualised)

21.3%

Absolute return

18.6%

Opening value

₹18.2L

Closing value

₹24.1L

Gain breakdown, current FY

Short-term · 40%
Long-term · 60%
CY 2019 has no closing price at the period start, so it reports no rate instead of a wrong one.

Returns & Tax

Your returns, your tax,
period by period

XIRR accounts for every buy, sell and dividend on the date it happened. Margin runs it over the period you pick: since inception, a trailing stretch of 1, 2, 3 or 5 years, a calendar year, or a financial year. Ask it of one stock, of any list, or of the whole portfolio, alongside the absolute return, the gain, and the opening and closing value of the period.

Where a period cannot yield a rate, Margin says which period and why: nothing was held or traded, there is no closing price on the period start to value the opening position, or the cash flows never turn around inside the period, and the rate is left blank for that period.

On sales it separates short-term from long-term capital gains and applies the rate that was in force on the date of the sale, so a sale from years ago is taxed at the rate of its own year and not today's.

Since inceptionTrailingCalendar yearFinancial yearPer stockPer listFull portfolio

Net Investment

What your rupees earned,
and when you added them

Upload the funds statement your broker gives you and Margin reads the cash that moved between you and the market. It reports money in, money out, how much you are net invested, and what that has averaged a year.

From the same record it computes a money-weighted return, valuing your holdings today against every deposit and withdrawal on the date it happened. XIRR tells you what your capital earned while it sat in particular stocks, while the money-weighted return accounts for when you put the money in. Margin shows both figures, each labelled, and neither replaces the other.

Cash lying idle with the broker is not in the rate, because the statement carries no balance Margin keeps, so the figure is understated by whatever you have left uninvested. Totals begin at the earliest year you upload, and Margin names any year missing in between.

Money in and outNet investedMoney-weighted returnPer brokerageCharges by year

Zerodha statements are read as downloaded. Other brokers go in through a generic column mapping.

Funds Statement

Every year on record Last 12 months Last 3 years FY 2025-26 Dates you choose

Money in

₹51.2L

38 deposits

Money out

₹8.6L

5 withdrawals

Net invested

₹42.6L

Put in less taken out

Average a year

₹6.1L

Over 7 years

Money-weighted return

16.8%

01 Apr 2022 to 05 Sep 2026, holdings valued at ₹68.4L today

Record starts FY 2019-20. Anything you invested before that year is not in these totals.

Dividends On Record

Net received

₹2.41L

Paying stocks

34

Payouts recorded

128

Years covered

7

FY 2019-20 to FY 2025-26

FY 2025-26, most recent payouts

COFORGE ex-date 03 Aug 2026 ₹1,160
CANTABIL ex-date 20 Feb 2026 ₹2,018
SAREGAMA ex-date 11 Nov 2025 ₹14,580
2 rows name a stock we could not match. Pick them and the year is recorded; until then nothing is written.

Dividends

Dividends belong
in your return

Upload the dividend statement for one financial year and Margin keeps a payout per stock per ex-date, with the ex-date held as the day the cash arrived. A stock that paid twice in a year stays two payouts with their own dates.

Each payout then counts as cash returned on that date, in the XIRR of the stock and of the whole portfolio. A year you have not uploaded understates your return by whatever it paid, so Margin shows the years you hold before you read any return as settled.

When a row names a stock Margin cannot match, nothing is written and the year is left as it was. You pick the stock yourself and upload again, so a year is never reported complete while a holding is missing from it.

One financial year at a timeEx-date keptCounted in XIRRDelete by stock and year

Zerodha dividend statements are read today. Send yours through the feedback button in the app and the format gets added.

Research Library

Read the story
behind every number

Margin builds structured research reports on Indian stocks, covering the business, its financial health, its recent story, how its valuation looks through the cycle, and the industry it competes in.

Don't see a stock you follow? Request it, and you'll be notified inside Margin the moment its research is ready.

Stock Story

Why the business matters, financial health, recent story

Valuation Normalisation

What earnings look like through the cycle

Segment Story

The business broken down segment by segment

Industry Story

Sector dynamics and structural forces

Browse the research library
margin · research

Stock Story

A leading Indian franchise

1 Why the business matters
2 Financial health
3 Stock's recent story
Quick story 3 / 40

A midcap compounder

Consumer · NSE

EBITDA margin

18% – 22%

Full story Video
YesMaybeNoNever

Screen

Screen the market,
one card at a time

Flip through a deck of quick stories, each carrying what the company sells, who it competes with, its margin range and its latest revenue. Give a verdict on every one: Yes, Maybe, No, or Never.

Margin remembers your calls and picks up where you left off. Everything you say Yes or Maybe to lands in your Screened list, ready to dig into.

Start screening

Data Security

Your portfolio data
stays yours

We use Privacy Vault, a secure encrypted store, to protect personally identifiable information like your name and email. Where a regular database would hold those fields in the clear, Privacy Vault locks them with separate encryption keys.

The funds statement gets stricter treatment, because its description column carries your client code, payment references and bank account. Margin reads that file in your browser and sends only the dated amounts, so the file never leaves your machine. Sending the description at all is your choice, and when you do, the server hashes it on arrival and keeps only the hash. No endpoint returns the wording and there is no text search over the ledger.

  • Your broker login credentials are never stored
  • Your funds statement is read in the browser, and the file itself is never uploaded
  • Row descriptions are optional, and hashed on arrival when you do send them
  • Sensitive data is encrypted with Privacy Vault (Databunker)
  • Only you can access your portfolio data
  • Trade files are processed and never exposed to third parties
How Privacy Vault protects you
Privacy Vault

Who is behind this

A named company,
on the record

Margin asks you to upload the record of your portfolio, so it is fair to want to know who is receiving it. We are a company registered in India with our identification number published on this site, and the terms you sign up under are written out rather than summarised.

Margin is not an advisory service and is not registered as one. It makes no recommendations, sells no tips and takes no view on any stock. Every assumption behind a number it shows you is one you entered.

Registered as
Yuktibyte Products Private Limited
CIN
U62099KA2025PTC196482
Based in
Bangalore, India

Reading

Written for
people who do this work

Guides take one feature and the investing concept behind it. Insights cover how investing works, and they hold up whether or not you use Margin. Recipes deal with automating the clerical part.

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.

Which brokers can I import from?

Holdings and trades come in from Zerodha, Groww, Upstox and AngelOne as downloaded, and from any other broker through a generic CSV layout. Dividend statements are read from Zerodha today. The funds statement is read from Zerodha as downloaded, and from other brokers through a column mapping you set once.

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

Everything, for nothing

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.

Stock & Industry Stories

Fundamental stories,
told clearly

Our YouTube channel works through Indian businesses one at a time: what the company sells, how it earns, what the numbers have done, and what its recent story has been. There are no tips and no price calls on the channel.

The industry stories go a level up, covering the sector dynamics, the competitive structure and the forces that decide how long an advantage lasts.

Watch on YouTube

Stock story

Stock story

Industry story

A sample of what is on the channel. More stories go up regularly.