Market Terminal

Margin History: What Your Options Strategy Needed, Day by Day

9 min read ยท Updated 2 Nov 2026

The margin you see for a NIFTY short straddle is today's number. It won't tell you what the same trade needed last month, or in a volatile stretch.

That's the gap the Margin History page fills. You describe an options or futures strategy, choose a date range, and it shows the exchange margin the strategy would have needed on every trading day in that range.

Checking how much margin a strategy needed over time on Unfluke.

What goes into F&O margin?

Diagram showing how exchange margin is built for a short straddle. Each leg's margin on its own adds up to the standalone figure. Together the legs need less, SPAN plus exposure, and the difference is the hedge benefit. Legs are rules that pick a new contract each day
Margin is SPAN plus exposure, with ELM added on expiry day, minus the hedge benefit when legs offset. The numbers are only an illustration.

Sell an option or trade a future and the exchange blocks some of your money as a buffer against losses. That's margin, and on NSE it's mostly built from a few pieces.

The big one is SPAN margin. It's the worst likely one-day loss on the position, worked out from a set of price and volatility scenarios in NSE's SPAN risk files. Exposure margin is an extra buffer that sits on top of SPAN. On expiry day there's one more charge, ELM, an additional extreme loss margin on short options that expire that day.

The hedge benefit works the other way. It's the reduction you get when legs offset each other. The page shows it as the standalone margin, which is every leg margined on its own and added up, minus the margin for the legs together. Even a short straddle gets some benefit because its two legs partly offset. A sold option protected by a bought one gets more.

None of this stays put. Margin changes every day with the underlying's price and volatility, and with how close the contracts are to expiry.

How the page rebuilds your strategy each day

You set up a strategy as a set of legs. Each leg gets a Side, Buy or Sell, and an Instrument, which can be a call, a put or a future. You also choose the Lots, an Expiry cycle and position, and a Strike method. For the strike you can use an ATM offset, points from spot or percent from spot.

Legs are rules, not fixed contracts. A rule like "Sell the ATM call on the nearest weekly expiry" points to a different contract every day. So for each trading day, the page works out which contracts your rules pick from that day's NSE SPAN file and calculates the margin for them. That's how one strategy can run across months or even years.

Pick the Underlying, which can be NIFTY, BANKNIFTY, FINNIFTY or MIDCPNIFTY, set a From date and a To date, and press Run margin history. You can save a strategy by name, say "NIFTY weekly short straddle", and run it again later.

Each day is priced from NSE's 15:32 margin file for that day, the i05 snapshot, because it's the one closest to the day's close and to India VIX. If NSE didn't publish it, we use the latest earlier file from the same day and flag the row.

ATM is the spot in that file rounded to the nearest strike step. Plus always means a higher strike, for calls and puts alike. When a strike isn't listed, the nearest listed one is used and the day is flagged.

Expiry minimum, counted in days, skips expiries closer than that. Leave it at 0 and the expiring contract stays in on expiry day. Set it to 1 and the leg rolls to the next expiry before that. Lot size is taken per contract, so when NSE changes it, the new size shows up from the expiry NSE applied it to.

On a long range the chart fills in as days are computed, oldest first. Finished days are cached, so running the same strategy again comes back quickly. The dates you can pick depend on your plan.

Reading what comes back

The summary cards show Average, Lowest, Highest and Latest margin across the sessions in your range, and the Lowest and Highest ones carry the date they happened. The Margin vs India VIX chart plots the strategy's margin for each day, with India VIX on a second axis.

For every day you also get the margin split into Standalone, SPAN, Exposure, ELM, Premium and Benefit, so you can see what drove a change. Index close, Spot and VIX give you the market backdrop for the day. Contracts / status tells you which contracts the legs resolved to, and Warnings point out any day the page couldn't price fully.

What if a day has no number?

A day the page can't price still shows up. The index close and VIX are filled in so the chart has no holes, and a status tells you why there's no margin figure.

  • no-file means NSE has no margin file for that instrument that day. You'll see it for FINNIFTY or MIDCPNIFTY before their data begins.
  • no-expiry means a leg asked for an expiry that wasn't listed, like the one after next when only two were.
  • contract-not-found means a leg pointed to a contract that isn't in that day's file. The page never shows a total that's quietly too low.
  • no-lot-size means the lot size for a leg's contract isn't on record.

Warnings mark a day that was priced, but with a substitution.

  • SNAPSHOT_FALLBACK means the 15:32 file was missing, so an earlier file from the same day was used.
  • STRIKE_ADJUSTED means the strike wasn't listed, so the nearest listed one was used.
  • ONLY_MONTHLY_LISTED means a weekly leg landed on a monthly expiry because no weeklies were listed.

Why margin climbs when India VIX does

SPAN scenarios are built around how far the market might move. Higher expected volatility means wider scenarios and bigger possible losses. So when India VIX climbs, the margin for the same strategy usually climbs with it. On the chart the margin line tends to follow the VIX line. A strategy that fit your capital in a calm month may need noticeably more in a volatile one.

Margin jumped but the market didn't move?

Margin is quoted for the lots you entered, and NSE sets the size of one lot per contract. So when NSE revises a lot size, the margin for 1 lot changes even if nothing else moved. If you spot a sudden step in the chart, check the lot size history for that period first.

Ideas worth testing

These are ideas to study and test. They aren't recommendations or signals. Past margin tells you how much capital a strategy has needed, not what it'll need next, and position size, entries, exits and risk are your own decisions.

Plan capital for the peak. Run the strategy you trade over a year or two and read the Highest margin card along with its date. Keep capital for that figure plus a buffer, not for today's margin. A strategy sized to a calm month can face a margin call in a volatile one.

Keep an eye on India VIX. On the chart, margin tends to rise with it, so once VIX starts climbing you can expect the same position to need more margin. Some traders size down or keep extra cash while VIX is rising rather than wait for the exchange to ask.

Compare naked and hedged by running the same straddle twice, once as two sold options and once with bought wings further out. The Benefit column and the lower margin show what the hedge saves. Weigh that against the premium the wings cost.

Expiry day deserves its own look. Short options expiring that day attract extra ELM, and you'll see it as a jump on expiry days. Set Expiry minimum to 1 and the strategy rolls to the next expiry before that day. Run it both ways and compare.

Finally, tell a lot size change apart from a market move. A step in margin while VIX is flat usually means NSE changed the lot size. Check the lot size history before you read it as more risk.

Where we'd start

Run the strategy you actually trade over a year or two. Then look at the Highest margin card and the VIX spikes on the chart. That's what the strategy has needed when markets got stressed, and that tells you more than today's figure can. Running a hedged version next to the naked one also shows how much the hedge benefit cuts the requirement.

More to read

Go back to the derivatives data guide or read our piece on implied volatility, straddles and strangles. When you're ready, check margin history free.

How to Read This Data

Margin History shows the exchange margin a futures or options strategy would have needed on each past trading day. It's priced from that day's NSE margin file and shown next to the index close and India VIX. You can see how the capital a strategy ties up has changed with volatility, expiry and lot size.

  1. Read the margin line against the India VIX line. The two usually rise and fall together.
  2. Compare the Highest and Average margin cards to see how much the requirement has swung over the range.
  3. Look at the SPAN, Exposure, ELM and Benefit columns on a given day to see which part moved.
  4. If margin steps up on a day when VIX barely moved, check the lot size history before you read it as a change in risk.

Limitations: These are exchange margins rebuilt from NSE's daily files. Your broker can ask for more, and the margin on a live day can differ from the end-of-day file. Past margin doesn't tell you what a strategy will need next.

Diagram of margin following India VIX over a year, with a peak at a volatility spike and a step from a lot size change
Margin tends to follow India VIX. A step while VIX stays flat usually means a lot size change.

Margin History

More from the blog

  • How Strategy Backtesting Works on Unfluke

    Test equity, Nifty, Bank Nifty and options strategies on real Indian market data, with costs included and the metrics that tell you if a rule holds up.

  • Live Market Scanners on Unfluke

    Scan 1,800+ NSE stocks live with Unfluke. Mix 40+ technical indicators with fundamental filters, F&O data and your own rules, then get alerts on matches.

  • The Option Strategy Simulator

    Build multi-leg options strategies on Unfluke, see the payoff, Greeks, max profit and max loss, and replay them on real option data from 2023.