Lesson 014 min read

Why Futures (for Coders)

November 05, 2026

// TL;DR

A future is a contract to buy or sell a fixed quantity at a fixed price on a fixed date — an OBLIGATION, not a right, with a linear 1:1 payoff and no premium (you post margin). Futures do three jobs: HEDGING (locking a price for real businesses), SPECULATION (betting on direction), and PRICE DISCOVERY. They suit programmers because the payoff is simple to model and the only complexity is mechanical and learnable (cost of carry, margin/mark-to-market, rollover). But the leverage (~8x) and DAILY cash settlement make them more dangerous than options in one way: losses aren't capped at a premium. The mindset: learn first, paper-trade, size by risk not margin, keep spare margin, and make 'don't blow up' the goal.

This course rounds out the trading set. You have (hopefully) seen options — rights, premiums, Greeks. Futures are the other great derivative, and in a way the simpler one. Let us get the big picture and the right attitude first.

What is a future?

A future is a contract to buy or sell a fixed quantity of something at a fixed price on a fixed date. Unlike an option (which is a right you can walk away from), a future is an obligation — both sides are committed. If you are long a Nifty future, you have agreed to buy Nifty at the futures price; if Nifty rises, you profit; if it falls, you lose — linearly, 1:1, with no premium. Instead of a premium you post margin, a good-faith deposit, which is what gives futures their leverage.

That is the whole idea. The payoff is a straight line, the maths is (exit − entry) × lot size, and there are no Greeks to worry about. Simple — which is exactly why it is a clean thing to automate.

The three jobs futures do

Futures are not just a casino for speculators; they do real economic work:

  1. Hedging. A jeweller with gold stock, an airline that burns fuel, a farmer with a crop — all use futures to lock in a price and remove uncertainty. This is what futures were invented for (Lesson 9).
  2. Speculation. Traders (you) take a leveraged view on price — up or down — providing the liquidity hedgers need.
  3. Price discovery. Because futures aggregate everyone’s view of the future price, they are a key signal of where the market thinks things are heading.

Understanding all three — not just speculation — makes you a better trader, because it explains why prices and term structures behave as they do.

Why a programmer has an edge

Futures suit us for the same reasons every market does, plus one: the payoff is simple to model. No volatility surface, no option Greeks, no premium decay — just a linear P&L. The complexity that exists is mechanical and learnable:

  • Cost of carry — why a future sits slightly above or below spot (Lesson 3). Pure arithmetic.
  • Margin and daily mark-to-market — why a losing position bleeds cash in real time (Lesson 5). Also arithmetic.
  • Rollover and term structure — why holding past expiry costs or pays you (Lesson 6). Again, countable.

All three are things a programmer can compute, backtest and automate. The edge is the usual one — data, discipline, no emotion — made cleaner by the linear payoff.

The mindset (respect the leverage)

Here is the catch, and it is a real one. A future’s simplicity hides a sharp edge: there is no premium capping your loss. With an option you bought, the worst case is the premium. With a future, a big adverse move is a big, real loss — and because futures are marked to market every day, that loss is debited from your account in cash, daily, not netted at expiry. Add ~8× leverage and daily cash settlement, and an under-capitalised futures trader can be wiped out fast.

So the mindset:

  • Learn first, paper-trade, then trade small. Understand cost of carry, margin and rollover before risking a rupee.
  • Size by risk, not by margin. The exchange lets you take ~8× leverage — that is the maximum, not a target. One Nifty lot already controls ₹18 lakh.
  • Keep spare margin. Daily MTM debits and volatility-driven margin hikes will hit; don’t run at the limit.
  • Make “don’t blow up” the goal. Survival first; the clean, automatable payoff is only useful if your account survives to use it.

Pitfalls

  • Treating leverage as free upside. It magnifies losses equally, and daily cash settlement makes them bite immediately. Most blow-ups are over-sized positions.
  • “Just buy and hold the future”. Rollover and the contango bleed (Lesson 6) quietly erode naive long-and-hold futures strategies. It is not like holding a stock.
  • Going live before understanding margin. A margin call you did not plan for will force you out at the worst moment. Know the mechanics first.

Recap

A future is an obligation to buy/sell a fixed quantity at a fixed price on a fixed date — a linear, 1:1 payoff with no premium, just margin. Futures do three jobs: hedging, speculation and price discovery. They suit programmers because the payoff is simple to model; the only complexity (cost of carry, margin/MTM, rollover) is mechanical and learnable. But leverage plus daily cash settlement make them dangerous — so learn first, size by risk, keep spare margin, and make survival the goal.

Next: Lesson 2 — Futures Basics, where we nail down long/short, contract specs and the linear payoff.