Module contents
Lesson 9 of 30Core 90 min

Derivatives: forwards, futures, options and static arbitrage

Study discount curves, forward and futures contracts, option payoffs, put-call parity and static no-arbitrage bounds.

After this lesson you can

  • Calculate discount factors and zero rates from bond prices and convert between compounding conventions.
  • Derive the forward price by replication with financing costs, dividends and convenience yield.
  • Explain daily futures settlement, basis and when forwards and futures differ.
  • Construct option strategy payoff profiles and prove put-call parity.
  • Prove static no-arbitrage bounds and detect violations in an option-price chain.

Before you start

A contract on another asset

A derivative transforms payoffs of an underlying asset: a forward fixes a future exchange and an option grants a right. Before choosing a probability model, compare portfolios with equal or dominating payoffs. Under single prices and frictionless financing and long and short positions, a negative-cost portfolio with nonnegative payoff constitutes arbitrage. The conclusions below are theoretical bounds, not a claim that actual quotes can be traded without costs.

Discounting and building a curve

The zero-coupon discount factor D(0,T)D(0,T) is today’s price of one unit payable with certainty at TT. For continuous rate z(T)z(T), D(0,T)=e−z(T)TD(0,T)=e^{-z(T)T}; for effective annual compounding aa, D=(1+a)−TD=(1+a)^{-T}; with simple interest ss, D=(1+sT)−1D=(1+sT)^{-1}. These are different conventions for the same quantity when converted correctly. A positive factor can exceed one when the rate is negative: no arbitrage alone does not require positive rates.

For example, over one year 4% continuous is equivalent to an effective rate e0.04−1≈4.0811%e^{0.04}-1\approx4.0811\%, not exactly 4% effective. The discount is e−0.04≈0.960789e^{-0.04}\approx0.960789. For cash flows at different dates apply each flow’s own factor; using one bond yield for all coupons mixes valuation with a summary rate.

If bonds have face value 100 and annual coupon 4, maturing in 1, 2 and 3 years, their prices satisfy

P1=104D1,P2=4D1+104D2,P3=4D1+4D2+104D3.P_1=104D_1,\quad P_2=4D_1+104D_2,\quad P_3=4D_1+4D_2+104D_3.

Bootstrapping first solves D1=P1/104D_1=P_1/104, then D2=(P2−4D1)/104D_2=(P_2-4D_1)/104 and finally D3=(P3−4D1−4D2)/104D_3=(P_3-4D_1-4D_2)/104. A change in an early bond propagates to later solutions. Irregular maturities and coupons require interpolation and checks of dates, accrued interest and price consistency.

InteractiveBuild the zero-coupon curve
Through year 3
100.85
D(1)0.9704
D(2)0.9324
D(3)0.8869
Two-year continuously compounded zero rate3.5 %
Forward rate from year 1 to 24.0 %
Forward rate from year 2 to 35.0 %
Three synthetic bonds with face value 100 and annual coupon 4. Prices come from hypothetical initial factors, with the two-year price rounded to cents. The player reveals factors successively; change that price and observe propagation. These are not observed quotes.

Between t1t_1 and t2t_2, the implied continuous forward rate is f(t1,t2)=log⁡[D(0,t1)/D(0,t2)]/(t2−t1)f(t_1,t_2)=\log[D(0,t_1)/D(0,t_2)]/(t_2-t_1). It equalizes investments under those quotes, not a certain prediction of the future rate. The lab curve comes from fitted zero yields published in FRED; a coupon-bond yield or constant-maturity Treasury rate is not automatically a zero rate.

Forwards and futures

A long forward agrees to receive the asset at TT for price KK, with payoff ST−KS_T-K. At inception, if initial cost is zero, delivery price F0F_0 follows by replication. For known continuous yield qq and constant continuous rate rr,

F0=S0e(r−q)T.F_0=S_0e^{(r-q)T}.

A prepaid asset delivering one unit at maturity costs A=S0e−qTA=S_0e^{-qT}; financing it until TT gives F0=A/D(0,T)F_0=A/D(0,T). For known discrete dividends, subtract their present value II from the initial price and divide by DD: F0=(S0−I)/DF_0=(S_0-I)/D. The formula requires those flows to be truly known and replicable. For storage and convenience yield, S0e(r+u−y)TS_0e^{(r+u-y)T} is often written under a model of tradable continuous costs and yields; for physical commodities, inventory and sale constraints may prevent reverse arbitrage, so the equality is not imposed without its assumptions.

Direction matters. If the quoted delivery price exceeds A/DA/D, borrow AA, buy the prepaid asset and sell the forward. At maturity deliver the asset, receive the agreed price and repay A/DA/D; the difference is positive. If it is lower, the reverse trade requires selling the prepaid asset and taking the long forward. The argument requires trading and financing both legs under the assumed conditions; taxes, uncertain dividends or short-sale constraints may break the operational equality.

An existing forward with delivery KK has value to the long V0=D(0,T)(F0−K)V_0=D(0,T)(F_0-K), if F0F_0 denotes the current delivery price for the same maturity. Delivery price and contract value differ: the former is a future level and the latter today’s value of an existing commitment.

Standardized futures are cleared through a clearinghouse. In daily marking to market, price changes are credited or charged to the margin account; initial margin is collateral, not the full asset price. Basis is usually spot minus futures and depends on delivery dates and quality. With deterministic rates and otherwise matching conditions, forward and futures have the same theoretical price. With random rates, settlement timing and its correlation with price can create a convexity difference: they cannot always be equated.

For a one-unit long position, if settlement price moves from 100 to 102 and then 99, margin movements are +2 and −3 before multipliers and fees. Their nominal sum is −1, but flows occur on different days and their financed value depends on when they are received or paid. CME describes daily settlement and margin marking.

Options as payoff building blocks

Option payoffs depend on terminal price and strike. A European call pays (ST−K)+(S_T-K)^+ and a European put (K−ST)+(K-S_T)^+; European options are exercised only at maturity. An American option permits earlier exercise. For a call, in the money means S>KS>K; for a put, S<KS<K. Payoff is not profit: the latter includes premium, its financing, costs and quantities.

InteractivePayoff building blocks
  • Total payoff at maturity
100
0
1
0
1
0
0
Payoff if S = 8020.00
Payoff if S = 1000.00
Payoff if S = 12020.00
Combine hypothetical quantities of calls, put, underlying and bond. The selector prepares a straddle, butterfly or synthetic forward; edit positions and central strike, with endpoints 20 apart. The chart shows only maturity payoffs, without initial prices or profit.

A long straddle adds a call and put at the same strike and pays ∣ST−K∣|S_T-K|. An equally spaced butterfly buys a low and a high call and sells two middle calls: its payoff is nonnegative and concentrated between strikes. A synthetic forward buys a call and sells a put at the same strike, paying ST−KS_T-K. Do not infer that a strategy is free just because its payoff has a known form.

Parity and static bounds

European put-call parity follows from (ST−K)+−(K−ST)+=ST−K(S_T-K)^+-(K-S_T)^+=S_T-K. A call plus a bond paying KK replicates a put plus a prepaid asset delivering the underlying:

C−P=A−KD(0,T),A=S0e−qTC-P=A-KD(0,T),\qquad A=S_0e^{-qT}

for deterministic continuous yield qq. Without dividends A=S0A=S_0; with known discrete dividends A=S0−IA=S_0-I. Matching maturity, strike, currency and exercise style are essential. For American options the equality does not generally hold. For a non-dividend asset and nonnegative rate, usual bounds are S0−K≤CA−PA≤S0−KDS_0-K\le C_A-P_A\le S_0-KD; dividends and negative rates require reanalyzing exercise and financing strategies.

To check parity state by state, if ST>KS_T>K the call plus bond pays (ST−K)+K=ST(S_T-K)+K=S_T, as does prepaid asset plus put; if ST≤KS_T\le K, both portfolios pay KK. For example, with S0=100S_0=100, K=100K=100 and D=0.98D=0.98, parity requires C−P=2C-P=2. If a call costs 11 and the put 8, selling the call, buying the put and prepaid asset, and issuing the bond paying 100 generates initial income 1 with zero terminal payoff. This is an example with single prices and ideal borrowing.

For European options on a nonnegative underlying and tradable prepaid asset, static bounds include

max⁡(0,A−KD)≤C(K)≤A,max⁡(0,KD−A)≤P(K)≤KD.\max(0,A-KD)\le C(K)\le A,\qquad \max(0,KD-A)\le P(K)\le KD.

If K1<K2K_1<K_2, a low-strike call is worth at least as much as a high-strike call and their difference is at most D(K2−K1)D(K_2-K_1); puts have reverse monotonicity and the same spread limit. For K1<K2<K3K_1<K_2<K_3, with λ=(K3−K2)/(K3−K1)\lambda=(K_3-K_2)/(K_3-K_1), convexity means C(K2)≤λC(K1)+(1−λ)C(K3)C(K_2)\le\lambda C(K_1)+(1-\lambda)C(K_3). The portfolio long the endpoints at those weights and short one middle call has nonnegative payoff for all ST≥0S_T\ge0.

The difference between calls at strikes K1<K2K_1<K_2 pays between zero and K2−K1K_2-K_1, giving its two price bounds. For unequally spaced strikes such as 85, 100 and 120, the low-end weight is 20/3520/35 and high-end weight 15/3515/35: using half a call at each endpoint would be incorrect. Convexity also holds for puts. These classical rational-pricing constraints are studied, among other sources, in Merton (1973).

InteractiveThe butterfly and convexity
  • Call chain
  • Chord between endpoints
12.0
Butterfly cost2.50
Maximum payoff10.00
These three call prices satisfy convexity.
Hypothetical chain with calls at strikes 80 and 120 priced 24 and 5. The central call has strike 100 and editable price. The butterfly buys half a call at each endpoint and sells one middle call; maximum payoff is 10 and cost is 14.5 minus the middle price. These are not market quotes.

If the middle call costs more than 14.5, that butterfly costs less than zero and never pays negatively; it is arbitrage under ideal assumptions. Equality at zero cost requires examining possible states to decide whether strict profit exists. The checker below identifies strictly negative costs and does not automatically declare a boundary equality arbitrageable.

An actual chain has bid and ask prices, sizes, times and restrictions. An executable test buys at the ask and sells at the bid for each leg, includes financing and dividends, and checks simultaneous liquidity. A violation calculated with mid-prices may disappear with those costs; the lab uses one synthetic price per instrument and does not claim to find tradable opportunities.

Lab: arbitrage portfolios

We represent each portfolio by quantities of calls and puts, a prepaid asset delivering STS_T, and a zero-coupon bond paying one unit. Each record has negative initial cost and nonnegative terminal payoff for all ST≥0S_T\ge0. The detector checks parity, bounds, adjacent strike spreads and convexity of consecutive triples for calls and puts. Triples use correct weights even for unequal strikes; these fixed-chain tests do not cover maturity differences or execution constraints.

[ ]Detect violations and return portfoliosBrowser
import numpy as np
def detect_static_arbitrage(strikes,calls,puts,S,r,q,T,tol=1e-9):
    K=np.asarray(strikes,float); C=np.asarray(calls,float); P=np.asarray(puts,float)
    if K.ndim!=1 or len(K)<3 or C.shape!=K.shape or P.shape!=K.shape or not np.isfinite(np.r_[K,C,P,S,r,q,T]).all() or S<=0 or T<=0 or K[0]<0 or np.any(np.diff(K)<=0):
        raise ValueError('Cadena o parámetros inválidos')
    D=np.exp(-r*T); A=S*np.exp(-q*T); n=len(K); out=[]
    def add(label,bond=0.,prepaid=0.,calls=None,puts=None):
        c=np.zeros(n) if calls is None else np.asarray(calls,float)
        p=np.zeros(n) if puts is None else np.asarray(puts,float)
        cost=float(bond*D+prepaid*A+c@C+p@P)
        if cost < -tol: out.append({'violacion':label,'coste':cost,'bono':bond,'prepago':prepaid,'calls':c,'puts':p})
    def pos(*pairs):
        x=np.zeros(n)
        for i,v in pairs: x[i]+=v
        return x
    for i,k in enumerate(K):
        unit=pos((i,1)); short=-unit
        add(f'call no negativa {i}',calls=unit)
        add(f'call inferior {i}',bond=k,prepaid=-1,calls=unit)
        add(f'call superior {i}',prepaid=1,calls=short)
        add(f'put no negativa {i}',puts=unit)
        add(f'put inferior {i}',bond=-k,prepaid=1,puts=unit)
        add(f'put superior {i}',bond=k,puts=short)
        add(f'paridad call cara {i}',bond=-k,prepaid=1,calls=short,puts=unit)
        add(f'paridad put cara {i}',bond=k,prepaid=-1,calls=unit,puts=short)
    for i in range(n-1):
        dk=K[i+1]-K[i]; c=pos((i,1),(i+1,-1)); p=pos((i,-1),(i+1,1))
        add(f'call monotonia {i}',calls=c); add(f'call pendiente {i}',bond=dk,calls=-c)
        add(f'put monotonia {i}',puts=p); add(f'put pendiente {i}',bond=dk,puts=-p)
    for i in range(n-2):
        a=(K[i+2]-K[i+1])/(K[i+2]-K[i]); v=pos((i,a),(i+1,-1),(i+2,1-a))
        add(f'call convexidad {i}',calls=v); add(f'put convexidad {i}',puts=v)
    return out

The test chain is generated with a finite three-state distribution of mean 100, zero rate and dividend; one call is then altered. The grid checks payoffs of found portfolios, including breakpoints. Beyond the last strike the payoff is linear, so we also check a distant point. This is not a real chain.

[ ]Check portfolios in a synthetic chainBrowser
K=np.array([80.,100.,120.]); states=np.array([60.,100.,150.]); prob=np.array([.25,.55,.20])
C=np.maximum(states[:,None]-K,0).T@prob; P=np.maximum(K-states[:,None],0).T@prob
print('cadena válida:',len(detect_static_arbitrage(K,C,P,100,0,0,1)))
Cbad=C.copy(); Cbad[1]+=8
violations=detect_static_arbitrage(K,Cbad,P,100,0,0,1)
grid=np.r_[np.linspace(0,300,1201),1e6]
for a in violations:
    payoff=a['bono']+a['prepago']*grid+sum(a['calls'][i]*np.maximum(grid-k,0)+a['puts'][i]*np.maximum(k-grid,0) for i,k in enumerate(K))
    assert a['coste']<0 and payoff.min()>-1e-7
print('violaciones:',[a['violacion'] for a in violations],'| carteras verificadas:',len(violations))

Lab: curve and forward

First recover factors from three synthetic annual bond prices. Then download FRED series THREEFY1, THREEFY2 and THREEFY3, zero yields fitted by the Kim-Wright model. These are estimates from a term-structure model, not prices of the synthetic bonds or par rates. The date is fixed at 2025-12-31 and data may be revised. The lab needs local Python with network access; we linearly interpolate continuous yield between one and two years as an illustrative convention, not the only possible curve.

[ ]Bootstrap synthetic bondsBrowser
import numpy as np
true_d=np.exp(-np.array([.03,.07,.12])); prices=np.array([104*true_d[0],4*true_d[0]+104*true_d[1],4*(true_d[0]+true_d[1])+104*true_d[2]])
def bootstrap(prices,coupon=4,face=100):
    d=[]
    for price in prices:
        value=(price-coupon*sum(d))/(face+coupon)
        if value<=0: raise ValueError('Factor no positivo')
        d.append(value)
    return np.array(d)
d=bootstrap(prices); print('precios sintéticos:',np.round(prices,5),'| factores:',np.round(d,6),'| ceros continuos:',np.round(-np.log(d)/np.arange(1,4),5))
[ ]FRED and an index forwardLocal GPU
import io, urllib.request
import numpy as np, pandas as pd
date='2025-12-31'; yields=[]
for i in (1,2,3):
    url=f'https://fred.stlouisfed.org/graph/fredgraph.csv?id=THREEFY{i}&cosd={date}&coed={date}'
    with urllib.request.urlopen(url,timeout=40) as response: data=pd.read_csv(io.BytesIO(response.read()))
    row=data.loc[data['observation_date']==date,f'THREEFY{i}']
    if len(row)!=1 or not np.isfinite(pd.to_numeric(row,errors='coerce').iloc[0]): raise ValueError('Falta la fecha solicitada')
    yields.append(float(row.iloc[0])/100)
z=np.asarray(yields); maturity=1.5; z15=np.interp(maturity,[1,2,3],z); D=np.exp(-z15*maturity)
S=100.; q=.01; forward=S*np.exp(-q*maturity)/D
print('fecha',date,'| ceros FRED',np.round(z,6),'| cero interpolado',round(z15,6),'| descuento',round(D,6),'| forward hipotético',round(forward,6))
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

The run using the accessed download gave continuous zero rates 0.035099, 0.034833 and 0.035255 at one, two and three years. The interpolated 1.5-year zero rate was 0.034966 and the forward on a hypothetical index of 100 with q=1%q=1\% was 103.815905. Comparing with the synthetic curve compares two distinct examples, not calibration of the first to FRED.

Exercises

NumericForward with continuous dividend yield
With S = 100, continuous r = 4%, continuous q = 1% and T = 0.5 years, calculate the forward delivery price.
ProofEuropean parity
Prove: Prove C−P=S0−KDC-P=S_0-KD for a non-dividend underlying and European options with the same strike and maturity.
0
Compare a call plus a bond paying KK with a put plus one unit of the underlying.

Step 1 of 3. If the final price exceeds K, what does each portfolio pay?

ProofNonnegative butterfly
Prove: Prove call convexity in strike for K1<K2<K3K_1<K_2<K_3.
0
Let λ=(K3−K2)/(K3−K1)\lambda=(K_3-K_2)/(K_3-K_1), so K2=λK1+(1−λ)K3K_2=\lambda K_1+(1-\lambda)K_3.

Step 1 of 3. What portfolio forms the butterfly?

QuizEarly exercise
With a positive rate, no dividends, no costs and time remaining, why is it unattractive to exercise an in-the-money American call early?
CodeOption-chain checker
Implement detect_static_arbitrage(K,C,P,S,r,q,T). Return a list of dictionaries with negative cost and quantities under keys coste, bono, prepago, calls and puts. The bond pays one unit and the prepaid asset pays S_T. Detect bounds, parity, monotonicity and adjacent-strike slopes and convexity of call and put triples; use tolerance 1e-9.
def detect_static_arbitrage(K,C,P,S,r,q,T):
  raise NotImplementedError()
Shift+Enter to run

Ideas to remember

A discount factor moves payoffs to the same date; the forward combines prepayment and financing. Futures and forwards can differ with random rates. European parity and bounds follow from replicating or dominating portfolios, but an arbitrage signal using mid-prices does not establish an executable real trade.