Skip to main content
The formulas Rails uses to settle contracts at expiry. For a conceptual overview, see the Settlement & Expiry guide.

Notation

SymbolMeaning
SSettlement price of the underlying at expiry
KStrike price
qtyPosition quantity — positive for long, negative for short
valuePosition value (positive for long, negative for short)
payoffTotal payoff for the position
IndexIndex price at settlement

Payoff

Per-contract payoff, settled against the settlement price S:
Option typePer-contract payoff
Call (C)MAX(S − K, 0)
Put (P)MAX(K − S, 0)
Total payoff scales by the absolute position size:
payoff = perContractPayoff × |qty|

Realized PnL

SideFormula
Long (qty > 0)payoff − value
Short (qty < 0)`value− payoff`

Delivery fee

A delivery fee applies to profitable long positions at settlement, capped at the payoff:
deliveryFee = MIN(0.00015 × Index × qty, payoff)
Settlement results — including per-position payoff, settlementPrice, and realizedPnl — are delivered on the Settlements Stream.